diff options
| author | bakkeby <[email protected]> | 2020-08-21 15:49:15 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-21 15:49:15 +0200 |
| commit | 81488b4862487c6debed8f447db217d2d2c78ecb (patch) | |
| tree | ef7fb92c9e68b5195dd0939a0db7d3c6d201d06b /patch/bar_flexwintitle.c | |
| parent | 6b9c484b787efaabf574a3f4217023aa87b5b5c4 (diff) | |
| download | dwm-flexipatch-81488b4862487c6debed8f447db217d2d2c78ecb.tar.gz dwm-flexipatch-81488b4862487c6debed8f447db217d2d2c78ecb.zip | |
Simplification of color configuration; settling on a set of color schemes that is shared between multiple patches (urgentborder, floatborder and titlecolor patches made non-optional)
Diffstat (limited to 'patch/bar_flexwintitle.c')
| -rw-r--r-- | patch/bar_flexwintitle.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/patch/bar_flexwintitle.c b/patch/bar_flexwintitle.c index bf5b4f2..603af8f 100644 --- a/patch/bar_flexwintitle.c +++ b/patch/bar_flexwintitle.c @@ -157,13 +157,13 @@ getschemefor(Monitor *m, int group, int activegroup) if (m->lt[m->sellt]->arrange == &monocle) return (activegroup ? SchemeFlexActMONO : SchemeFlexInaMONO); #endif // MONOCLE_LAYOUT - return SchemeNorm; + return SchemeTitleNorm; case GRP_HIDDEN: return SchemeHid; case GRP_FLOAT: return (activegroup ? SchemeFlexActFloat : SchemeFlexInaFloat); } - return SchemeNorm; + return SchemeTitleNorm; } int @@ -175,7 +175,7 @@ getselschemefor(int scheme) return scheme + SchemeFlexInaTTB - SchemeFlexActTTB; if (scheme >= SchemeFlexActTTB) return scheme + SchemeFlexSelTTB - SchemeFlexActTTB; - return SchemeSel; + return SchemeTitleSel; } void @@ -190,10 +190,8 @@ flextitledraw(Monitor *m, Client *c, int unused, int x, int w, int tabscheme, Ar ? getselschemefor(tabscheme) : HIDDEN(c) ? SchemeHid - #if URGENTBORDER_PATCH || BAR_STATUSCOLORS_PATCH : c->isurgent ? SchemeUrg - #endif : tabscheme )]); if (w <= TEXTW("A") - lrpad + pad) // reduce text padding if wintitle is too small |
