rofi: Use launchpad theme

This is a slightly modified version of Newman Sánchez's launchpad theme
that adds pywal support and makes the icons bigger.
This commit is contained in:
Donovan Glover 2023-04-30 18:33:10 -04:00
parent 8004d74a17
commit 1dd1f46554
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,169 +1,98 @@
/*
Based on Newman Sánchez's Launchpad theme.
https://github.com/newmanls/rofi-themes-collection
*/
* {{ * {{
active-background: @background; font: "Noto Sans CJK JP Bold 12";
active-foreground: @foreground;
normal-background: @background;
normal-foreground: @foreground;
urgent-background: @background;
urgent-foreground: @foreground;
alternate-active-background: @background; bg0: #242424dd;
alternate-active-foreground: @foreground; bg1: #363636;
alternate-normal-background: @background; bg2: #f5f5f520;
alternate-normal-foreground: @foreground; bg3: #f5f5f540;
alternate-urgent-background: @background; bg4: #0860f2E6;
alternate-urgent-foreground: @foreground;
selected-active-background: {color8}; fg0: #f5f5f5;
selected-active-foreground: @foreground; fg1: #f5f5f580;
selected-normal-background: {color8};
selected-normal-foreground: @foreground;
selected-urgent-background: {color8};
selected-urgent-foreground: @foreground;
background-color: transparent; background-color: transparent;
background: rgba({background.rgb}, 0.9);
foreground: {foreground}; foreground: {foreground};
border-color: @background; text-color: @fg0;
spacing: 2; padding: 0px;
margin: 0px;
}} }}
#window {{ window {{
background-color: @background; fullscreen: true;
border: 1px; padding: 1em;
border-color: {color7}; background-color: @bg0;
padding: 2.5ch; background-color: rgba({background.rgb}, 0.9);
}} }}
#mainbox {{ mainbox {{
border: 0; padding: 8px;
padding: 0;
}} }}
#message {{ inputbar {{
border: 2px 0px 0px; background-color: @bg2;
border-color: @border-color;
padding: 1px; margin: 0px calc( 50% - 230px );
padding: 4px 8px;
spacing: 8px;
border: 1px;
border-radius: 2px;
border-color: @bg3;
children: [icon-search,entry];
}} }}
#textbox {{ prompt {{
text-color: @foreground; enabled: false;
}} }}
#inputbar {{ icon-search {{
children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; expand: false;
filename: "search";
vertical-align: 0.5;
}} }}
#textbox-prompt-colon {{ entry {{
expand: false; placeholder: "Search";
str: ":"; placeholder-color: @bg2;
margin: 0px 0.3em 0em 0em;
text-color: @normal-foreground;
}} }}
#listview {{ listview {{
fixed-height: 0; /*margin: 48px calc( 50% - 560px );*/
border: 2px 0px 0px; margin: 86px calc( 50% - 560px );
border-color: @border-color; spacing: 48px;
spacing: 2px; /*columns: 5;*/
scrollbar: true; columns: 5;
padding: 2px 0px 0px; fixed-columns: true;
}} }}
#element {{ element, element-text, element-icon {{
border: 0; cursor: pointer;
padding: 1px;
}} }}
#element-text, element-icon {{ element {{
background-color: inherit; padding: 8px;
text-color: inherit; spacing: 4px;
orientation: vertical;
border-radius: 16px;
}} }}
#element.normal.normal {{ element selected {{
background-color: transparent; background-color: {color8};
text-color: @normal-foreground;
}} }}
#element.normal.urgent {{ element-icon {{
background-color: transparent; size: 5em;
text-color: @urgent-foreground; horizontal-align: 0.5;
}} }}
#element.normal.active {{ element-text {{
background-color: transparent; horizontal-align: 0.5;
text-color: @active-foreground;
}} }}
#element.selected.normal {{
background-color: transparent;
text-color: @selected-normal-foreground;
}}
#element.selected.urgent {{
background-color: transparent;
text-color: @selected-urgent-foreground;
}}
#element.selected.active {{
background-color: transparent;
text-color: @selected-active-foreground;
}}
#element.alternate.normal {{
background-color: transparent;
text-color: @alternate-normal-foreground;
}}
#element.alternate.urgent {{
background-color: transparent;
text-color: @alternate-urgent-foreground;
}}
#element.alternate.active {{
background-color: transparent;
text-color: @alternate-active-foreground;
}}
#scrollbar {{
width: 4px;
border: 0;
handle-width: 8px;
padding: 0;
}}
#sidebar {{
border: 2px 0px 0px;
border-color: @border-color;
}}
#button {{
text-color: @normal-foreground;
}}
#button.selected {{
background-color: transparent;
text-color: @selected-normal-foreground;
}}
#inputbar {{
spacing: 0;
text-color: @normal-foreground;
padding: 1px;
}}
#case-indicator {{
spacing: 0;
text-color: @normal-foreground;
}}
#entry {{
spacing: 0;
text-color: @normal-foreground;
}}
#prompt {{
spacing: 0;
text-color: @normal-foreground;
}}
// vim:syn=css // vim:syn=css