From 4fa6d66d8432ec4b90a7874d54835fb7c244577d Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 23 Jul 2019 16:35:30 +0200 Subject: [PATCH] Update default rofi theme and apply it to rofi's window mode --- default_config.lua | 4 +- rofi/config | 1 - rofi/themes/paper-float.rasi | 76 +++++++++++++++++++++--------------- 3 files changed, 47 insertions(+), 34 deletions(-) delete mode 100644 rofi/config diff --git a/default_config.lua b/default_config.lua index 2d61a88..27957d7 100644 --- a/default_config.lua +++ b/default_config.lua @@ -17,8 +17,8 @@ config.screenshotCmd = "flameshot gui" config.kbSwitchCmd = "setxkbmap" config.kbLayouts = { "fr", "us" } -config.runMenu = "rofi -show run -config " .. awful.util.getdir("config") .. "/rofi/config" -config.windowSwitcher = "rofi -show window -config ./rofi" +config.runMenu = "rofi -show run -config " .. awful.util.getdir("config") .. "/rofi/themes/paper-float.rasi" +config.windowSwitcher = "rofi -show window -config " .. awful.util.getdir("config") .. "/rofi/themes/paper-float.rasi" return config \ No newline at end of file diff --git a/rofi/config b/rofi/config deleted file mode 100644 index e02b13b..0000000 --- a/rofi/config +++ /dev/null @@ -1 +0,0 @@ -rofi.theme: ~/.config/awesome/rofi/themes/paper-float.rasi diff --git a/rofi/themes/paper-float.rasi b/rofi/themes/paper-float.rasi index bc1940c..9a330e9 100644 --- a/rofi/themes/paper-float.rasi +++ b/rofi/themes/paper-float.rasi @@ -5,16 +5,22 @@ * Copyright: Dave Davenport */ * { + background: #222222; + active-background: #0005; + active-background-selected: #fff1; + text: #eeeeee; + blue: #0000FF; - white: #FFFFFF; black: #000000; grey: #eeeeee; spacing: 2; background-color: #00000000; - border-color: #444444FF; + border-color: #fff2; anchor: north; location: center; + + highlight: bold #fff; } #window { transparency: "screenshot"; @@ -32,11 +38,11 @@ #message { border: 2px; padding: 1em; - background-color: @white; - text-color: @back; + background-color: @background; + text-color: @text; } #textbox normal { - text-color: #002B36FF; + text-color: @text; padding: 0; border: 0; } @@ -47,48 +53,47 @@ reverse: false; columns: 1; - background-color: @white; + background-color: @background; } #element { border: 0; padding: 2px; - highlight: bold ; } #element normal.normal { - text-color: #002B36FF; - background-color: #F5F5F500; + text-color: @text; + background-color: @background; } #element normal.urgent { - text-color: #D75F00FF; - background-color: #F5F5F5FF; + text-color: @text; + background-color: @background; } #element normal.active { - text-color: #005F87FF; - background-color: #F5F5F5FF; + text-color: @text; + background-color: @active-background; } #element selected.normal { - text-color: #F5F5F5FF; - background-color: #4271AEFF; + text-color: @text; + background-color: #fff1; } #element selected.urgent { - text-color: #F5F5F5FF; - background-color: #D75F00FF; + text-color: @text; + background-color: @background; } #element selected.active { - text-color: #F5F5F5FF; - background-color: #005F87FF; + text-color: @text; + background-color: @active-background-selected; } #element alternate.normal { - text-color: #002B36FF; - background-color: #D0D0D0FF; + text-color: @text; + background-color: @background; } #element alternate.urgent { - text-color: #D75F00FF; - background-color: #D0D0D0FF; + text-color: @text; + background-color: @background; } #element alternate.active { - text-color: #005F87FF; - background-color: #D0D0D0FF; + text-color: @text; + background-color: @active-background; } #scrollbar { border: 0; @@ -98,29 +103,38 @@ spacing: 0; border: 2px; padding: 0.5em 1em; - background-color: @grey; + background-color: @background; index: 0; } #inputbar normal { - foreground-color: #002B36FF; - background-color: #F5F5F500; + foreground-color: @text; + background-color: @background; } #mode-switcher { border: 2px; padding: 0.5em 1em; - background-color: @grey; + background-color: @background; index: 10; } #button selected { - text-color: #4271AEFF; + text-color: @text; } #inputbar { children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; } +#prompt { + text-color: @text; +} +#entry { + text-color: @text; +} +#case-indicator { + text-color: @text; +} #textbox-prompt-colon { expand: false; str: ":"; margin: 0px 0.3em 0em 0em ; - text-color: @normal-foreground; + text-color: @text; }