summaryrefslogtreecommitdiff
path: root/src/tabs/basetabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-02 21:33:17 +0200
committermathieui <mathieui@mathieui.net>2014-04-02 21:33:17 +0200
commit52e6334c8c95ec873ccbcf17bf42de12eec0475d (patch)
treed83bccb0ccd319821670f4b00642ee47d995e8fe /src/tabs/basetabs.py
parent65c247399d4b5d8d78953e72cab89b7cf6b890fa (diff)
downloadpoezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.tar.gz
poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.tar.bz2
poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.tar.xz
poezio-52e6334c8c95ec873ccbcf17bf42de12eec0475d.zip
Fix #2340 (change tab priority when the input is not empty)
Diffstat (limited to 'src/tabs/basetabs.py')
-rw-r--r--src/tabs/basetabs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py
index 7b300b18..c58efc26 100644
--- a/src/tabs/basetabs.py
+++ b/src/tabs/basetabs.py
@@ -44,6 +44,7 @@ MIN_HEIGHT = 6
STATE_COLORS = {
'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED,
'scrolled': lambda: get_theme().COLOR_TAB_SCROLLED,
+ 'nonempty': lambda: get_theme().COLOR_TAB_NONEMPTY,
'joined': lambda: get_theme().COLOR_TAB_JOINED,
'message': lambda: get_theme().COLOR_TAB_NEW_MESSAGE,
'highlight': lambda: get_theme().COLOR_TAB_HIGHLIGHT,
@@ -55,6 +56,7 @@ STATE_COLORS = {
VERTICAL_STATE_COLORS = {
'disconnected': lambda: get_theme().COLOR_VERTICAL_TAB_DISCONNECTED,
'scrolled': lambda: get_theme().COLOR_VERTICAL_TAB_SCROLLED,
+ 'nonempty': lambda: get_theme().COLOR_VERTICAL_TAB_NONEMPTY,
'joined': lambda: get_theme().COLOR_VERTICAL_TAB_JOINED,
'message': lambda: get_theme().COLOR_VERTICAL_TAB_NEW_MESSAGE,
'highlight': lambda: get_theme().COLOR_VERTICAL_TAB_HIGHLIGHT,
@@ -71,6 +73,7 @@ STATE_PRIORITY = {
'normal': -1,
'current': -1,
'disconnected': 0,
+ 'nonempty': 0.1,
'scrolled': 0.5,
'message': 1,
'joined': 1,