优化rofi windows样式

master
yutent 2023-07-20 03:29:34 +00:00 committed by GitHub
parent 915f946725
commit ef098951df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 46 deletions

View File

@ -4,7 +4,7 @@
padding: 0; padding: 0;
spacing: 0; spacing: 0;
bg: #39404f80; bg: #57606fae;
fg: #f8f8f2; fg: #f8f8f2;
dark: #39404f; dark: #39404f;
red: #bf616a; red: #bf616a;

View File

@ -1,16 +1,8 @@
configuration { configuration {
modes: "windowcd"; modes: "windowcd";
icon-theme: "Nordzy-cyan-dark"; icon-theme: "Nordzy-cyan-dark";
//window-thumbnail: true;
window { window-format: "{c:20}\n<span size='small'>{t:25}</span>";
display-name: "";
}
windowcd {
display-name: "";
}
window-format: "{c} - {t}";
} }
@theme "./colors.rasi" @theme "./colors.rasi"
@ -18,68 +10,49 @@ configuration {
window { window {
transparency: "real"; transparency: "real";
width: 720px; location: center;
width: 1200px;
border-radius: 4px; border-radius: 4px;
background-color: @bg; background-color: @bg;
} }
mainbox { mainbox {
padding: 24px;
children: [inputbar, listview];
}
inputbar {
background-color: @grey;
border-radius: 6px;
margin: 12px 0;
children: [prompt, entry];
}
entry {
background-color: transparent;
padding: 16px 4px;
font: "Menlo 16";
vertical-align: 0.5; vertical-align: 0.5;
padding: 48px 24px;
children: [ listview ];
} }
prompt {
padding: 16px;
font: "'Material Icons' bold 24px";
vertical-align: 0.5;
background-color: transparent;
}
listview { listview {
lines: 8; flow: horizontal;
scrollbar: true; fixed-columns: true;
columns: 3;
lines: 2;
cycle: false; cycle: false;
background-color: transparent; background-color: transparent;
} }
scrollbar {
handle-width: 5px ;
handle-color: @blue;
background-color: @bg;
}
element { element {
padding: 0 12px; //orientation: vertical;
margin: 0 12px 0 0; padding: 32px 6px;
margin: 12px 24px;
border-radius: 6px; border-radius: 6px;
text-color: @blue; text-color: @blue;
background-color: transparent; background-color: @grey;
children: [element-icon, element-text]; children: [element-icon, element-text];
} }
element-icon { element-icon {
size: 48; size: 64;
padding: 12px 10px; padding: 0 10px;
background-color: transparent; background-color: transparent;
} }
element-text { element-text {
padding: 12px 0; padding: 12px 0;
font: "Menlo 16"; font: "Menlo 14";
vertical-align: 0.5; vertical-align: 0.5;
text-color: inherit; text-color: inherit;
background-color: transparent; background-color: transparent;