ADD focused border color
This commit is contained in:
parent
010c094a0c
commit
81a9f621da
|
@ -98,6 +98,8 @@ main = do
|
||||||
, logHook = myLoghook h
|
, logHook = myLoghook h
|
||||||
, clickJustFocuses = False
|
, clickJustFocuses = False
|
||||||
, focusFollowsMouse = False
|
, focusFollowsMouse = False
|
||||||
|
, normalBorderColor = T.bordersColor
|
||||||
|
, focusedBorderColor = T.selectedBordersColor
|
||||||
}
|
}
|
||||||
|
|
||||||
spawnPipe' :: MonadIO m => String -> m (ProcessID, Handle)
|
spawnPipe' :: MonadIO m => String -> m (ProcessID, Handle)
|
||||||
|
|
33
lib/Theme.hs
33
lib/Theme.hs
|
@ -10,7 +10,7 @@ import Data.Colour.SRGB
|
||||||
import Data.List
|
import Data.List
|
||||||
|
|
||||||
import qualified XMonad.Layout.Decoration as D
|
import qualified XMonad.Layout.Decoration as D
|
||||||
import qualified XMonad.Prompt as P
|
import qualified XMonad.Prompt as P
|
||||||
|
|
||||||
-- Colors
|
-- Colors
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ fgColor :: String
|
||||||
fgColor = "#2c2c2c"
|
fgColor = "#2c2c2c"
|
||||||
|
|
||||||
bordersColor :: String
|
bordersColor :: String
|
||||||
bordersColor = darken' 0.85 bgColor
|
bordersColor = darken' 0.3 bgColor
|
||||||
|
|
||||||
warningColor :: String
|
warningColor :: String
|
||||||
warningColor = "#ffca28"
|
warningColor = "#ffca28"
|
||||||
|
@ -38,6 +38,9 @@ selectedFgColor = "#ffffff"
|
||||||
selectedBgColor :: String
|
selectedBgColor :: String
|
||||||
selectedBgColor = "#3399ff"
|
selectedBgColor = "#3399ff"
|
||||||
|
|
||||||
|
selectedBordersColor :: String
|
||||||
|
selectedBordersColor = "#006cd9"
|
||||||
|
|
||||||
backdropBaseColor :: String
|
backdropBaseColor :: String
|
||||||
backdropBaseColor = baseColor
|
backdropBaseColor = baseColor
|
||||||
|
|
||||||
|
@ -57,18 +60,26 @@ darken' wt = sRGB24show . darken wt . sRGB24read
|
||||||
|
|
||||||
-- Fonts
|
-- Fonts
|
||||||
|
|
||||||
data Slant = Roman | Italic | Oblique deriving (Eq, Show)
|
data Slant = Roman
|
||||||
|
| Italic
|
||||||
|
| Oblique
|
||||||
|
deriving (Eq, Show)
|
||||||
|
|
||||||
data Weight = Light | Medium | Demibold | Bold | Black deriving (Eq, Show)
|
data Weight = Light
|
||||||
|
| Medium
|
||||||
|
| Demibold
|
||||||
|
| Bold
|
||||||
|
| Black
|
||||||
|
deriving (Eq, Show)
|
||||||
|
|
||||||
data ThemeFont = ThemeFont
|
data ThemeFont = ThemeFont
|
||||||
{ family :: String
|
{ family :: String
|
||||||
, weight :: Maybe Weight
|
, weight :: Maybe Weight
|
||||||
, slant :: Maybe Slant
|
, slant :: Maybe Slant
|
||||||
, size :: Maybe Int
|
, size :: Maybe Int
|
||||||
, pixelsize :: Maybe Int
|
, pixelsize :: Maybe Int
|
||||||
, antialias :: Maybe Bool
|
, antialias :: Maybe Bool
|
||||||
}
|
}
|
||||||
|
|
||||||
fmtFontXFT :: ThemeFont -> String
|
fmtFontXFT :: ThemeFont -> String
|
||||||
fmtFontXFT ThemeFont
|
fmtFontXFT ThemeFont
|
||||||
|
|
Loading…
Reference in New Issue