Files
nix/modules/home/hyprland/conf/rofi/config.rasi

126 lines
1.9 KiB
Plaintext
Raw Normal View History

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