Add icons for windows

This commit is contained in:
daleclack 2023-02-12 19:08:31 +08:00
parent 3420348c89
commit 48f6434a1c
6 changed files with 60 additions and 3 deletions

View File

@ -27,6 +27,7 @@ set(RESOURCE_LIST
flos.png flos.png
menubar.xml menubar.xml
style.css style.css
style_dark.css
reset.css reset.css
dock.ui dock.ui
start.ui start.ui
@ -35,6 +36,8 @@ set(RESOURCE_LIST
folder.svg folder.svg
gnome-fs-regular.svg gnome-fs-regular.svg
icons/16x16/actions/7zFM.png icons/16x16/actions/7zFM.png
icons/16x16/actions/arrow_left.svg
icons/16x16/actions/arrow_right.svg
icons/48x48/actions/My_GtkUI.png icons/48x48/actions/My_GtkUI.png
icons/scalable/status/file-manager.svg icons/scalable/status/file-manager.svg
icons/scalable/status/file-manager_running.svg icons/scalable/status/file-manager_running.svg

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#dedede;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="m5 8l6.251-6 .749.719-4.298 4.125-1.237 1.156 1.237 1.156 4.298 4.125-.749.719-4.298-4.125z"
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 427 B

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#dedede;
}
</style>
</defs>
<path style="fill:currentColor;fill-opacity:1;stroke:none"
d="m12 8l-6.251-6-.749.719 4.298 4.125 1.237 1.156-1.237 1.156-4.298 4.125.749.719 4.298-4.125z"
class="ColorScheme-Text"
/>
</svg>

After

Width:  |  Height:  |  Size: 428 B

View File

@ -210,7 +210,7 @@
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">1</property> <property name="visible">1</property>
<property name="pixel-size">16</property> <property name="pixel-size">16</property>
<property name="icon-name">arrow-right</property> <property name="icon-name">arrow_right</property>
</object> </object>
</child> </child>
<child> <child>
@ -476,7 +476,7 @@
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">1</property> <property name="visible">1</property>
<property name="pixel-size">16</property> <property name="pixel-size">16</property>
<property name="icon-name">arrow-left</property> <property name="icon-name">arrow_left</property>
</object> </object>
</child> </child>
<child> <child>

View File

@ -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;
}

View File

@ -86,7 +86,7 @@ static void main_win_init(MainWin *win)
// Apply Style for menubar and the button // Apply Style for menubar and the button
win->provider = GTK_STYLE_PROVIDER(gtk_css_provider_new()); 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(menubar), win->provider, G_MAXINT);
gtk_style_context_add_provider(gtk_widget_get_style_context(home_button), win->provider, G_MAXINT); gtk_style_context_add_provider(gtk_widget_get_style_context(home_button), win->provider, G_MAXINT);