Update Launcher Style

This commit is contained in:
Stephan Raabe 2023-10-01 18:32:19 +02:00
parent 3da90a9ccb
commit 8f48b99650
2 changed files with 238 additions and 71 deletions

View File

@ -9,94 +9,241 @@
# ----------------------------------------------------- # -----------------------------------------------------
*/ */
/* ---- Configuration ---- */
configuration { configuration {
display-drun: "Applications"; modi: "drun,run";
display-window: "Windows"; font: "Fira Sans Bold 12";
drun-display-format: "{name}"; show-icons: true;
font: "Fira Sans Bold 12"; icon-theme: "kora";
modi: "window,run,drun"; display-drun: "APPS";
show-icons: true; display-run: "RUN";
icon-theme: "kora"; display-filebrowser: "FILES";
display-window: "WINDOW";
drun-display-format: "{name}";
window-format: "{w} · {c} · {t}";
} }
/* Dark theme. */ /* ---- Load pywal colors (custom wal template) ---- */
@import "~/.cache/wal/colors-rofi-dark" @import "~/.cache/wal/colors-rofi-pywal"
/* ---- Window ---- */
window { window {
width:900px; width: 900px;
height:556px; x-offset: 0px;
spacing:0px; y-offset: 0px;
padding:0px; spacing: 0px;
margin:0px; padding: 0px;
margin: 0px;
border: 3px; color: #FFFFFF;
border-color:#FFFFFF; border: 3px;
border-radius:15px; border-color: #FFFFFF;
cursor: "default";
cursor: "default"; transparency: "real";
transparency: "real"; location: center;
fullscreen: "false"; anchor: center;
background-color: transparent; fullscreen: false;
enabled: true;
border-radius: 10px;
background-color: transparent;
} }
/* ---- Mainbox ---- */
mainbox { mainbox {
spacing:0px; enabled: true;
margin:0px; orientation: horizontal;
padding: 0px 0px 0px 500px; spacing: 0px;
background-image: url("~/.cache/current_wallpaper.jpg", height); margin: 0px;
background-color: @background;
background-image: url("~/.cache/current_wallpaper.jpg", height);
children: ["imagebox","listbox"];
} }
inputbar { /* ---- Imagebox ---- */
spacing: 0px; imagebox {
enabled:false; padding: 18px;
hidden:true; background-color: transparent;
backgound-color: transparent; orientation: vertical;
children: [ "inputbar", "dummy", "mode-switcher" ];
} }
listview { /* ---- Listbox ---- */
spacing:0px; listbox {
padding: 10px; spacing: 20px;
margin:0px;
background-color:transparent;
scrollbar: false;
dynamic: true;
}
// Elements //
element {
enabled: true;
padding: 10px;
margin: 3px;
cursor: pointer;
background-color: transparent;
border-radius: 10px;
}
element selected {
border:3px;
border-color: #FFFFFF;
background: #CCFFFFFF;
}
element-icon {
size:40px;
padding: 0px 10px 0px 0px;
}
element-text {
vertical-align: 0.5;
horizontal-align: 0.0;
cursor: inherit;
background-color: transparent; background-color: transparent;
text-color: inherit; orientation: vertical;
children: [ "message", "listview" ];
} }
prompt { /* ---- Dummy ---- */
text-color:#ffffff; dummy {
background-color: transparent;
}
/* ---- Inputbar ---- */
inputbar {
enabled: true;
text-color: @foreground;
spacing: 10px;
padding: 15px;
border-radius: 10px;
border-color: @foreground;
background-color: @background;
children: [ "textbox-prompt-colon", "entry" ];
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "";
background-color: transparent;
text-color: inherit;
} }
entry { entry {
text-color:#ffffff; enabled: true;
background-color: transparent;
text-color: inherit;
cursor: text;
placeholder: "Search";
placeholder-color: inherit;
} }
/* vim: ft=sass /* ---- Mode Switcher ---- */
mode-switcher{
enabled: true;
spacing: 20px;
background-color: transparent;
text-color: @foreground;
}
button {
padding: 10px;
border-radius: 10px;
background-color: @background;
text-color: inherit;
cursor: pointer;
border: 0px;
}
button selected {
background-color: @color11;
text-color: @foreground;
}
/* ---- Listview ---- */
listview {
enabled: true;
columns: 1;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 0px;
padding: 10px;
margin: 0px;
background-color: @background;
border:0px;
}
/* ---- Element ---- */
element {
enabled: true;
padding: 10px;
margin: 5px;
cursor: pointer;
background-color: @background;
border-radius: 10px;
border: 2px;
}
element normal.normal {
background-color: inherit;
text-color: @foreground;
}
element normal.urgent {
background-color: inherit;
text-color: @foreground;
}
element normal.active {
background-color: inherit;
text-color: @foreground;
}
element selected.normal {
background-color: @color11;
text-color: @foreground;
}
element selected.urgent {
background-color: inherit;
text-color: @foreground;
}
element selected.active {
background-color: inherit;
text-color: @foreground;
}
element alternate.normal {
background-color: inherit;
text-color: @foreground;
}
element alternate.urgent {
background-color: inherit;
text-color: @foreground;
}
element alternate.active {
background-color: inherit;
text-color: @foreground;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 32px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
/*****----- Message -----*****/
message {
background-color: transparent;
border:0px;
margin:20px 0px 0px 0px;
padding:0px;
spacing:0px;
border-radius: 10px;
}
textbox {
padding: 15px;
margin: 0px;
border-radius: 0px;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.0;
}
error-message {
padding: 15px;
border-radius: 20px;
background-color: @background;
text-color: @foreground;
}

View File

@ -0,0 +1,20 @@
* {{
background: rgba(0,0,1,0.5);
foreground: {foreground};
color0: {color0};
color1: {color1};
color2: {color2};
color3: {color3};
color4: {color4};
color5: {color5};
color6: {color6};
color7: {color7};
color8: {color8};
color9: {color9};
color10: {color10};
color11: {color11};
color12: {color12};
color13: {color13};
color14: {color14};
color15: {color15};
}}