From df6302c85157cab539985f31b1cad5287604b5c5 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sat, 22 Jan 2022 00:09:47 -0500 Subject: [PATCH] Created custom zenburn teme for rofi --- config/rofi/config.zenburn.rasi | 273 ++++++++++++++++---------------- 1 file changed, 133 insertions(+), 140 deletions(-) diff --git a/config/rofi/config.zenburn.rasi b/config/rofi/config.zenburn.rasi index 694ccd0..e0cbbe2 100644 --- a/config/rofi/config.zenburn.rasi +++ b/config/rofi/config.zenburn.rasi @@ -1,192 +1,185 @@ +/* ========================================================================== + Zenburn theme for rofi -/*-*- mode: css; -*-*/ -/** ROFI Color theme */ + Based on the Zenburn color scheme for Vim by jnurmine + https://github.com/jnurmine/Zenburn + ========================================================================== */ -configuration { - modi: "combi"; - combi-modi: "window,drun,run,ssh"; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - scroll-method: 1; - display-ssh: "ssh"; - display-run: "#! "; - display-drun: ""; - display-window: ""; - display-combi: "請選擇"; - show-icons: true; -} - -/** - * User: Qball - * Copyright: Dave Davenport - */ * { - foreground: #dcdccc; - backlight: #ccffeedd; - background-color: transparent; - dark: #434443; - black: #3F3F3F; - black-2: #4f4f4f; - tblack-2: #3f3f3fcc; - red: #CC9393; - red-2: #9C6363; - green: #7F9F7F; - green-2: #5F7F5F; - yellow: #F0DFAF; - yellow-2: #D0BF8F; - blue: #8CD0D3; - blue-2: #6CA0A3; - magenta: #DC8CC3; - magenta-2: #CB7BB2; - cyan: #93E0E3; - tcyan: #93E0E3de; - cyan-2: #82CFD2; - white: #DCDCCC; - white-2: #FFFFEF; - highlight: underline bold #6CA0A3; - transparent: rgba(0,0,0,0); - font: "Hack 12"; + /* Theme settings */ + highlight: bold italic; + scrollbar: true; + + /* Zenburn colors */ + + zenburn-bg0: #3f3f3f; + zenburn-bg1: #4f4f4f; + zenburn-fg: #dcdccc; + zenburn-black: #282828; + zenburn-dark-grey: #709080; + zenburn-dark-red: #705050; + zenburn-red: #dca3a3; + zenburn-dark-yellow: #f0deae; + zenburn-yellow: #dfcf9f; + zenburn-dark-blue: #506070; + zenburn-blue: #94bff3; + zenburn-dark-magenta: #dc8cc3; + zenburn-magenta: #ec93d3; + zenburn-dark-cyan: #8cd0d3; + zenburn-cyan: #93e0e3; + zenburn-light-grey: #dcdccc; + zenburn-white: #ffffff; + + /* Theme colors */ + background: @zenburn-bg0; + background-color: @background; + foreground: @zenburn-fg; + border-color: @zenburn-cyan; + separatorcolor: @border-color; + scrollbar-handle: @border-color; + + normal-background: @background; + normal-foreground: @foreground; + alternate-normal-background: @zenburn-bg1; + alternate-normal-foreground: @foreground; + selected-normal-background: @zenburn-dark-cyan; + selected-normal-foreground: @zenburn-black; + + active-background: @zenburn-yellow; + active-foreground: @background; + alternate-active-background: @active-background; + alternate-active-foreground: @active-foreground; + selected-active-background: @zenburn-cyan; + selected-active-foreground: @active-foreground; + + urgent-background: @zenburn-dark-red; + urgent-foreground: @background; + alternate-urgent-background: @urgent-background; + alternate-urgent-foreground: @urgent-foreground; + selected-urgent-background: @zenburn-red; + selected-urgent-foreground: @urgent-foreground; } window { - location: center; - anchor: center; - transparency: "screenshot"; - padding: 10px; - border: 0px; - radius: 15px; - color: @magenta; - background-color: @transparent; - spacing: 0; - children: [vertb, mainbox]; - orientation: horizontal; - font: "Hack 12"; + background-color: @background; + border: 2; + padding: 2; } mainbox { - spacing: 0; - children: [ inputbar, message, listview ]; + border: 0; + padding: 0; } message { - border-color: @foreground; - border: 0px 2px 2px 2px; - padding: 5; - background-color: @yellow; - font: "Hack 12"; - color: @black; + border: 2px 0 0; + border-color: @separatorcolor; + padding: 1px; } -inputbar { - color: @foreground; - padding: 11px; - background-color: @dark; - border: 2px 2px 2px 2px; - border-radius: 0px 0px 0px 0px; - border-color: @foreground; - font: "Hack 12"; -} - -entry,prompt,case-indicator { - text-font: inherit; - text-color:inherit; +textbox { + highlight: @highlight; + text-color: @foreground; } listview { - padding: 8px; - border-radius: 0px 0px 0px 0px; - border-color: @foreground; - border: 0px 2px 2px 2px; - background-color: #1c1c1ccc; - dynamic: true; - lines: 20; + border: 2px solid 0 0; + padding: 2px 0 0; + border-color: @separatorcolor; + spacing: 2px; + scrollbar: @scrollbar; } element { - padding: 3px; - vertical-align: 0.5; - background-color: @dark; - color: @dark; - font:inherit; + border: 0; + padding: 2px; } -element selected normal { - color: @black; - background-color: @foreground; +element.normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; } -element normal active { - foreground: @red-2; - color: @green-2; - background-color:@yellow-2; +element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; } -element normal.urgent { - foreground: @red; +element.normal.active { + background-color: @active-background; + text-color: @active-foreground; } -element normal normal { - background-color: @tblack; +element.selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; } -element alternate normal { - background-color: @black; +element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; } -element alternate.active { - foreground: @red; +element.selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; } -element alternate.urgent { - foreground: @red; +element.alternate.normal { + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; } -element selected.active { - color: @black; - background-color: @foreground; +element.alternate.urgent { + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; } -element selected.urgent { - background-color: @red-2; - foreground: @foreground; +element.alternate.active { + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; } - -vertb { - expand: false; - // children: [ Dummy0, sidebar, dummy1 ]; +scrollbar { + width: 4px; + border: 0; + handle-color: @scrollbar-handle; + handle-width: 8px; + padding: 0; } -dummy0, dummy1 { - expand: true; +mode-switcher { + border: 2px 0 0; + border-color: @separatorcolor; } -sidebar { - expand: false; - orientation: vertical; - spacing: 0px; - border: 0px 0px 0px 0px; +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 2px; + children: [ prompt, textbox-prompt-sep, entry, case-indicator ]; } +case-indicator, +entry, +prompt, button { - font: "FontAwesome 26"; - padding: 6px; - border: 2px 0px 2px 2px; - border-radius: 4px 0px 0px 4px; - background-color: @tblack-2; - border-color: @foreground; - color: @foreground; - horizontal-align: 0.5; + spacing: 0; + text-color: @normal-foreground; } -button selected normal { - color: @dark; - border: 2px 0px 2px 2px; - background-color: @backlight; - border-color: @foreground; +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; } -element-icon { - padding: 2px 0px; - size: 32px; +textbox-prompt-sep { + expand: false; + str: ":"; + text-color: @normal-foreground; + margin: 0 0.3em 0 0; +} +element-text, element-icon { + background-color: inherit; + text-color: inherit; }