diff --git a/Flos_Gtk4/CMakeLists.txt b/Flos_Gtk4/CMakeLists.txt index b48725c..7861999 100644 --- a/Flos_Gtk4/CMakeLists.txt +++ b/Flos_Gtk4/CMakeLists.txt @@ -27,6 +27,7 @@ set(RESOURCE_LIST flos.png menubar.xml style.css + style_dark.css reset.css dock.ui start.ui @@ -35,6 +36,8 @@ set(RESOURCE_LIST folder.svg gnome-fs-regular.svg icons/16x16/actions/7zFM.png + icons/16x16/actions/arrow_left.svg + icons/16x16/actions/arrow_right.svg icons/48x48/actions/My_GtkUI.png icons/scalable/status/file-manager.svg icons/scalable/status/file-manager_running.svg diff --git a/Flos_Gtk4/res/icons/16x16/actions/arrow_left.svg b/Flos_Gtk4/res/icons/16x16/actions/arrow_left.svg new file mode 100644 index 0000000..0ce1af3 --- /dev/null +++ b/Flos_Gtk4/res/icons/16x16/actions/arrow_left.svg @@ -0,0 +1,13 @@ + + + + + + diff --git a/Flos_Gtk4/res/icons/16x16/actions/arrow_right.svg b/Flos_Gtk4/res/icons/16x16/actions/arrow_right.svg new file mode 100644 index 0000000..3f5d6b7 --- /dev/null +++ b/Flos_Gtk4/res/icons/16x16/actions/arrow_right.svg @@ -0,0 +1,13 @@ + + + + + + diff --git a/Flos_Gtk4/res/start.ui b/Flos_Gtk4/res/start.ui index decadb2..efcaaf4 100644 --- a/Flos_Gtk4/res/start.ui +++ b/Flos_Gtk4/res/start.ui @@ -210,7 +210,7 @@ 1 16 - arrow-right + arrow_right @@ -476,7 +476,7 @@ 1 16 - arrow-left + arrow_left diff --git a/Flos_Gtk4/res/style_dark.css b/Flos_Gtk4/res/style_dark.css new file mode 100644 index 0000000..15e9d77 --- /dev/null +++ b/Flos_Gtk4/res/style_dark.css @@ -0,0 +1,28 @@ +/* +您可以在这里输入任何 GTK 可识别的 CSS 规则。 +您可以点击上面的“暂停”按钮来暂时停用这个自定义 CSS。 + +变更会立即应用到全局,影响整个应用程序。 +*/ +@import url("resource://org/gtk/daleclack/reset.css"); + +/*Style for menubar*/ +menubar{ + background-color: alpha(gray,0.7); +} + +box{ + background-color: alpha(gray,0.7); +} + +separator{ + background-color:rgb(59, 59, 59); +} + +menubutton{ + color:rgb(32, 32, 32); +} + +button{ + color:white; +} diff --git a/Flos_Gtk4/src/core/MainWin.cpp b/Flos_Gtk4/src/core/MainWin.cpp index c883c95..568e6fd 100644 --- a/Flos_Gtk4/src/core/MainWin.cpp +++ b/Flos_Gtk4/src/core/MainWin.cpp @@ -86,7 +86,7 @@ static void main_win_init(MainWin *win) // Apply Style for menubar and the button win->provider = GTK_STYLE_PROVIDER(gtk_css_provider_new()); - gtk_css_provider_load_from_resource(GTK_CSS_PROVIDER(win->provider), "/org/gtk/daleclack/style.css"); + gtk_css_provider_load_from_resource(GTK_CSS_PROVIDER(win->provider), "/org/gtk/daleclack/style_dark.css"); gtk_style_context_add_provider(gtk_widget_get_style_context(menubar), win->provider, G_MAXINT); gtk_style_context_add_provider(gtk_widget_get_style_context(home_button), win->provider, G_MAXINT);