Browse Source

refine v_white theme

Le Tan 8 years ago
parent
commit
ce1c042337

+ 4 - 1
src/resources/themes/v_white/v_white.palette

@@ -69,10 +69,12 @@ title_icon_fg=@icon_fg
 
 ; VVimIndicator.
 vim_indicator_key_label_fg=@base_fg
-vim_indicator_key_label_bg=@base_bg
 vim_indicator_mode_label_fg=@base_fg
 vim_indicator_cmd_edit_pending_bg=@selected_bg
 
+; VTabIndicator.
+tab_indicator_label_fg=@base_fg
+
 [widgets]
 ; Widget color attributes.
 
@@ -113,6 +115,7 @@ toolbutton_icon_danger_fg=@danger_icon_fg
 toolbox_icon_fg=@icon_fg
 
 ; Dockwidget.
+dockwidget_title_fg=@title_fg
 dockwidget_title_bg=@title_bg
 dockwidget_button_hover_bg=@hover_bg
 

+ 7 - 1
src/resources/themes/v_white/v_white.qss

@@ -132,6 +132,7 @@ QToolButton::menu-arrow {
 
 /* DockWidget */
 QDockWidget {
+    color: @dockwidget_title_fg;
     titlebar-close-icon: url(close.svg);
     titlebar-normal-icon: url(float.svg);
 }
@@ -481,7 +482,7 @@ QLabel[MenuSeparator="true"] {
 VVimIndicator QLabel[VimIndicatorKeyLabel="true"] {
     font: bold;
     color: @vim_indicator_key_label_fg;
-    background: @vim_indicator_key_label_bg;
+    background: transparent;
 }
 
 VVimIndicator QLabel[VimIndicatorModeLabel="true"] {
@@ -490,6 +491,11 @@ VVimIndicator QLabel[VimIndicatorModeLabel="true"] {
     color: @vim_indicator_mode_label_fg;
     /* background color will be controlled by the code. */
 }
+
+VTabIndicator QLabel[TabIndicatorLabel="true"] {
+    color: @tab_indicator_label_fg;
+    background: transparent;
+}
 /* End QLabel */
 
 /* QLineEdit */

+ 1 - 0
src/vtabindicator.cpp

@@ -31,6 +31,7 @@ void VTabIndicator::setupUI()
     m_systemLabel->setProperty("ColorGreenLabel", true);
 
     m_cursorLabel = new QLabel(this);
+    m_cursorLabel->setProperty("TabIndicatorLabel", true);
 
     QHBoxLayout *mainLayout = new QHBoxLayout(this);
     mainLayout->addWidget(m_cursorLabel);