2023-01-09 18:48:52 -05:00
|
|
|
/**
|
|
|
|
* ROFI Color Theme
|
|
|
|
*
|
|
|
|
* Fullscreen theme with switchable PREVIEW option.
|
|
|
|
*
|
|
|
|
* User: Dave Davenport
|
|
|
|
* Copyright: Dave Davenport
|
|
|
|
*/
|
|
|
|
|
|
|
|
* {
|
|
|
|
background-color: transparent;
|
|
|
|
text-color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
window {
|
|
|
|
fullscreen: true;
|
|
|
|
background-color: black/80%;
|
|
|
|
padding: 4em;
|
|
|
|
children: [ wrap, listview-split];
|
|
|
|
spacing: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** We add an extra child to this is PREVIEW=true */
|
|
|
|
listview-split {
|
|
|
|
orientation: horizontal;
|
|
|
|
spacing: 0.4em;
|
|
|
|
children: [listview];
|
|
|
|
}
|
|
|
|
|
|
|
|
wrap {
|
|
|
|
expand: false;
|
|
|
|
orientation: vertical;
|
|
|
|
children: [ inputbar, message ];
|
|
|
|
background-image: linear-gradient(white/5%, white/40%);
|
|
|
|
border-color: lightblue;
|
|
|
|
border: 3px;
|
|
|
|
border-radius: 0.4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
icon-ib {
|
|
|
|
expand: false;
|
|
|
|
filename: "system-search";
|
|
|
|
vertical-align: 0.5;
|
|
|
|
horizontal-align: 0.5;
|
|
|
|
size: 1em;
|
|
|
|
}
|
|
|
|
inputbar {
|
|
|
|
spacing: 0.4em;
|
|
|
|
padding: 0.4em;
|
|
|
|
children: [ icon-ib, entry ];
|
|
|
|
}
|
|
|
|
entry {
|
|
|
|
placeholder: "Search";
|
|
|
|
placeholder-color: grey;
|
|
|
|
}
|
|
|
|
message {
|
|
|
|
background-color: red/20%;
|
|
|
|
border-color: lightsalmon;
|
|
|
|
border: 3px 0px 0px 0px;
|
|
|
|
padding: 0.4em;
|
|
|
|
spacing: 0.4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
listview {
|
|
|
|
flow: horizontal;
|
|
|
|
fixed-columns: true;
|
|
|
|
columns: 7;
|
|
|
|
lines: 5;
|
|
|
|
spacing: 1.0em;
|
|
|
|
}
|
|
|
|
|
|
|
|
element {
|
|
|
|
orientation: vertical;
|
|
|
|
padding: 0.1em;
|
|
|
|
|
|
|
|
background-image: linear-gradient(white/5%, white/20%);
|
|
|
|
border-color: lightblue /15%;
|
|
|
|
border: 3px;
|
|
|
|
border-radius: 0.4em;
|
2023-01-10 07:52:13 -05:00
|
|
|
|
|
|
|
children: [element-icon, element-text ];
|
2023-01-09 18:48:52 -05:00
|
|
|
}
|
|
|
|
element-icon {
|
2023-01-10 07:52:13 -05:00
|
|
|
size: calc(((100% - 8em) / 7 ));
|
2023-01-09 18:48:52 -05:00
|
|
|
horizontal-align: 0.5;
|
|
|
|
vertical-align: 0.5;
|
|
|
|
}
|
|
|
|
element-text {
|
|
|
|
horizontal-align: 0.5;
|
|
|
|
vertical-align: 0.5;
|
|
|
|
padding: 0.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
element selected {
|
|
|
|
background-image: linear-gradient(white/25%, white/10%);
|
|
|
|
border-color: lightblue;
|
|
|
|
border: 3px;
|
|
|
|
border-radius: 0.4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Launching rofi with environment PREVIEW set to true
|
|
|
|
* will split the screen and show a preview widget.
|
|
|
|
*/
|
|
|
|
@media ( enabled: env(PREVIEW, false)) {
|
2023-01-13 14:35:12 -05:00
|
|
|
/** preview widget */
|
|
|
|
icon-current-entry {
|
|
|
|
expand: true;
|
|
|
|
size: 80%;
|
|
|
|
}
|
2023-01-09 18:48:52 -05:00
|
|
|
listview-split {
|
|
|
|
children: [listview, icon-current-entry];
|
|
|
|
}
|
|
|
|
listview {
|
|
|
|
columns: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2023-01-09 19:01:49 -05:00
|
|
|
|
|
|
|
@media ( enabled: env(NO_IMAGE, false)) {
|
|
|
|
listview {
|
|
|
|
columns: 1;
|
|
|
|
spacing: 0.4em;
|
|
|
|
}
|
|
|
|
element {
|
|
|
|
children: [ element-text ];
|
|
|
|
}
|
|
|
|
element-text {
|
|
|
|
horizontal-align: 0.0;
|
|
|
|
}
|
|
|
|
}
|