Browse Source

fix v_white theme

Le Tan 8 years ago
parent
commit
ae48d18688

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

@@ -13,7 +13,7 @@ main_fg=#000000
 main_bg=#F5F5F5
 
 title_fg=#000000
-title_bg=#E3DEDE
+title_bg=#DADBDB
 
 hover_fg=#000000
 hover_bg=#DCDCDC

+ 11 - 0
src/resources/themes/v_white/v_white.qss

@@ -17,6 +17,12 @@ QWidget[NotebookPanel="true"] {
 }
 /* End QWidget */
 
+/* QMainWindow */
+QMainWindow {
+    color: @base_fg;
+    background: @base_bg;
+}
+
 QMainWindow::separator {
     background: @dock_separator_bg;
     width: 2px;
@@ -26,6 +32,7 @@ QMainWindow::separator {
 QMainWindow::separator:hover {
     background: @dock_separator_hover_bg;
 }
+/* End QMainWindow */
 
 QMenuBar {
     border: none;
@@ -514,6 +521,8 @@ QTreeView {
     show-decoration-selected: 0;
     padding-top: 3px;
     border: none;
+    selection-background-color: transparent;
+    outline: none;
 }
 
 QTreeView::item {
@@ -573,6 +582,8 @@ QListView {
     show-decoration-selected: 0;
     padding-top: 3px;
     border: none;
+    selection-background-color: transparent;
+    outline: none;
 }
 
 QListView::item {

+ 1 - 1
src/vmdedit.cpp

@@ -552,7 +552,7 @@ QString VMdEdit::getPlainTextWithoutPreviewImage() const
         */
 
         // Iterate all the block to get positions for deletion.
-        QTextBlock block = document()->begin();
+        // QTextBlock block = document()->begin();
         bool tryAgain = false;
         /*
         while (block.isValid()) {