From cfde5d844ebb444df8949544db4561fd7902e259 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 26 Jun 2019 16:49:40 -0700 Subject: [PATCH] [taffybar] Add a border to the current workspace --- .../config/taffybar/ivanm-dfinity-razer.css | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/dotfiles/config/taffybar/ivanm-dfinity-razer.css b/dotfiles/config/taffybar/ivanm-dfinity-razer.css index a75e7023..15ac9a69 100644 --- a/dotfiles/config/taffybar/ivanm-dfinity-razer.css +++ b/dotfiles/config/taffybar/ivanm-dfinity-razer.css @@ -5,7 +5,7 @@ @define-color active-window-color @white; @define-color urgent-window-color @taffy-blue; -@define-color font-color @black; +@define-color font-color @white; @define-color menu-background-color @white; @define-color menu-font-color @black; @@ -28,9 +28,14 @@ } .contents { - padding: 3px; - transition: background-color .5s; + padding: 1px; + transition: border-color .5s, background-color .5s; border-radius: 6px; + /* This transparent border is needed because we will run in to sizing issues + without it because we only check sizing one time. */ + border-color: @transparent; + border-width: 2px; + border-style: solid; } /* Workspaces styling */ @@ -43,6 +48,8 @@ .active .contents { background-color: rgba(0.0, 0.0, 0.0, 0.2); + border-color: @font-color; + border-style: solid; } .visible .contents { @@ -60,18 +67,22 @@ This will actually affect all widgets, (not just the workspace icons), but that is what we want since we want the icons to look the same. */ .auto-size-image, .sni-tray { - padding: 1px; + border-color: @transparent; + border-style: solid; + border-width: 1px; + /* padding: 1px; */ } .window-icon-container.active { background-color: rgba(255.0, 255.0, 255.0, 0.3); + border-color: @font-color; } .window-icon-container.urgent { } .window-icon-container.inactive .window-icon { - padding: 0px; + padding: 0px; } .window-icon-container.minimized .window-icon {