Mercurial > libervia-backend
comparison sat_frontends/jp/base.py @ 3705:691dbd78981c
cli (debug/theme): display currently used background
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 06 Nov 2021 17:09:28 +0100 |
parents | c143e7f35074 |
children | 5131ed9163c0 |
comparison
equal
deleted
inserted
replaced
3704:c143e7f35074 | 3705:691dbd78981c |
---|---|
187 raise exceptions.ConfigError(_( | 187 raise exceptions.ConfigError(_( |
188 'Invalid value set for "background" ({background}), please check ' | 188 'Invalid value set for "background" ({background}), please check ' |
189 'your settings in libervia.conf').format( | 189 'your settings in libervia.conf').format( |
190 background=repr(background) | 190 background=repr(background) |
191 )) | 191 )) |
192 self.background = background | |
192 if background == 'light': | 193 if background == 'light': |
193 C.A_HEADER = A.FG_MAGENTA | 194 C.A_HEADER = A.FG_MAGENTA |
194 C.A_SUBHEADER = A.BOLD + A.FG_RED | 195 C.A_SUBHEADER = A.BOLD + A.FG_RED |
195 C.A_LEVEL_COLORS = (C.A_HEADER, A.BOLD + A.FG_BLUE, A.FG_MAGENTA, A.FG_CYAN) | 196 C.A_LEVEL_COLORS = (C.A_HEADER, A.BOLD + A.FG_BLUE, A.FG_MAGENTA, A.FG_CYAN) |
196 C.A_SUCCESS = A.FG_GREEN | 197 C.A_SUCCESS = A.FG_GREEN |