127 lines
1.9 KiB
Plaintext
127 lines
1.9 KiB
Plaintext
/* MACOS SPOTLIGHT LIKE THEME FOR ROFI */
|
|
|
|
/* 基本配置项 */
|
|
configuration {
|
|
show-icons: true;
|
|
icon-theme: "Papirus";
|
|
drun-display-format: "{icon} {name}";
|
|
display-drun: "";
|
|
}
|
|
|
|
/* 全局变量和样式设置 */
|
|
* {
|
|
font: "Montserrat 12";
|
|
|
|
bg0: #ffffff;
|
|
bg1: #e0e0e0;
|
|
bg2: #0860f2e6;
|
|
bg3: rgba(0, 0, 0, 0.015);
|
|
|
|
fg0: #242424;
|
|
fg1: #ffffff;
|
|
fg2: #24242480;
|
|
|
|
background-color: @bg0;
|
|
text-color: @fg0;
|
|
|
|
margin: 0px;
|
|
padding: 0px;
|
|
spacing: 0px;
|
|
}
|
|
|
|
/* 主窗口样式 */
|
|
window {
|
|
background-color: @bg0;
|
|
location: center;
|
|
width: 560px;
|
|
height: 450px;
|
|
border-radius: 8px;
|
|
border: 1px;
|
|
border-color: @bg1;
|
|
}
|
|
|
|
/* 搜索输入栏样式 */
|
|
inputbar {
|
|
font: "Montserrat 18";
|
|
padding: 12px;
|
|
spacing: 12px;
|
|
children: [ icon-search, entry];
|
|
}
|
|
|
|
/* 搜索图标样式 */
|
|
icon-search {
|
|
expand: false;
|
|
filename: "search";
|
|
size: 24px;
|
|
}
|
|
|
|
/* 元素垂直对齐设置 */
|
|
icon-search,
|
|
element-icon,
|
|
element-text {
|
|
vertical-align: 0.5;
|
|
}
|
|
|
|
/* 搜索输入框样式 */
|
|
entry {
|
|
font: inherit;
|
|
vertical-align: 0.5;
|
|
text-align: center;
|
|
padding: 5px;
|
|
spacing: 10px;
|
|
placeholder: "Search";
|
|
placeholder-color: @fg2;
|
|
}
|
|
|
|
/* 消息区域样式 */
|
|
message {
|
|
border: 2px 0 0;
|
|
border-color: @bg1;
|
|
background-color: @bg1;
|
|
}
|
|
|
|
/* 文本框样式 */
|
|
textbox {
|
|
padding: 8px 24px;
|
|
}
|
|
|
|
/* 列表视图样式 */
|
|
listview {
|
|
lines: 10;
|
|
columns: 1;
|
|
fixed-height: false;
|
|
border: 1px 0 0;
|
|
border-color: @bg1;
|
|
}
|
|
|
|
/* 列表项基本样式 */
|
|
element {
|
|
padding: 8px 16px;
|
|
spacing: 16px;
|
|
border: 0px;
|
|
border-radius: 4px;
|
|
background-color: transparent;
|
|
children: [ element-icon, element-text];
|
|
}
|
|
|
|
|
|
element normal.normal {
|
|
background-color: @bg3;
|
|
}
|
|
|
|
element alternate.normal {
|
|
background-color: @bg3;
|
|
}
|
|
|
|
/* 选中状态的列表项样式 */
|
|
element selected.active,
|
|
element selected.normal {
|
|
text-color: @fg1;
|
|
background-color: @bg2;
|
|
}
|
|
|
|
/* 列表项图标样式 */
|
|
element-icon {
|
|
size: 1.35em;
|
|
}
|