From 485723d7a94eaa9afc7346e85643b8a421f55b05 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Tue, 28 Mar 2017 21:13:28 +0800 Subject: [PATCH] change the color of corner widget of current window --- src/main.cpp | 4 ++-- src/resources/icons/corner_menu_cur.svg | 2 +- src/resources/icons/corner_tablist_cur.svg | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0449e93f..6c411490 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -70,13 +70,13 @@ int main(int argc, char *argv[]) QTextCodec::setCodecForLocale(codec); } VMainWindow w; - w.show(); - QString style = VUtils::readFileFromDisk(":/resources/vnote.qss"); if (!style.isEmpty()) { VUtils::processStyle(style, w.getPalette()); app.setStyleSheet(style); } + w.show(); + return app.exec(); } diff --git a/src/resources/icons/corner_menu_cur.svg b/src/resources/icons/corner_menu_cur.svg index fc8e3569..22677715 100644 --- a/src/resources/icons/corner_menu_cur.svg +++ b/src/resources/icons/corner_menu_cur.svg @@ -3,7 +3,7 @@ - diff --git a/src/resources/icons/corner_tablist_cur.svg b/src/resources/icons/corner_tablist_cur.svg index 89f9e8c5..455f82a8 100644 --- a/src/resources/icons/corner_tablist_cur.svg +++ b/src/resources/icons/corner_tablist_cur.svg @@ -5,7 +5,7 @@ width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"> - +