Swith from black <> white theme with the '9' hotkey - Related to issue #976

pull/1954/head
nicolargo 2021-11-11 10:32:46 +01:00
parent 2bf80fa44a
commit 74b820ebf1
3 changed files with 438 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "GLANCES" "1" "Aug 21, 2021" "3.2.4_beta03" "Glances"
.TH "GLANCES" "1" "Nov 11, 2021" "3.2.4_beta03" "Glances"
.SH NAME
glances \- An eye on your system
.

View File

@ -59,6 +59,7 @@ class _GlancesCurses(object):
# '4' > Enable or disable quicklook
# '5' > Enable or disable top menu
'6': {'switch': 'meangpu'},
'9': {'switch': 'theme_white'},
'/': {'switch': 'process_short_name'},
'a': {'sort_key': 'auto'},
'A': {'switch': 'disable_amps'},
@ -396,6 +397,9 @@ class _GlancesCurses(object):
self.disable_top()
else:
self.enable_top()
elif self.pressedkey == ord('9'):
# '9' > Theme from black to white and reverse
self._init_colors()
elif self.pressedkey == ord('e'):
# 'e' > Enable/Disable process extended
self.args.enable_process_extended = not self.args.enable_process_extended