Use gresource

pull/242/head
Satyajit Sahoo 2015-08-07 01:37:34 +05:30
parent 7f0f008de0
commit 5ef83db45e
5 changed files with 59 additions and 7 deletions

1
.gitignore vendored
View File

@ -3,4 +3,5 @@
# Ignore SASS files
.sass-cache
gtk.gresource
dist

View File

@ -1 +1 @@
@import url("dist/gtk-dark.css");
@import url("resource:///org/numixproject/gtk/dist/gtk-dark.css");

View File

@ -1 +1 @@
@import url("dist/gtk.css");
@import url("resource:///org/numixproject/gtk/dist/gtk.css");

View File

@ -0,0 +1,46 @@
<?xml version='1.0' encoding='UTF-8'?>
<gresources>
<gresource prefix='/org/numixproject/gtk'>
<file preprocess='to-pixdata'>assets/checkbox-checked-dark.png</file>
<file preprocess='to-pixdata'>assets/checkbox-checked-insensitive-dark.png</file>
<file preprocess='to-pixdata'>assets/checkbox-checked-insensitive.png</file>
<file preprocess='to-pixdata'>assets/checkbox-checked.png</file>
<file preprocess='to-pixdata'>assets/checkbox-mixed-dark.png</file>
<file preprocess='to-pixdata'>assets/checkbox-mixed-insensitive-dark.png</file>
<file preprocess='to-pixdata'>assets/checkbox-mixed-insensitive.png</file>
<file preprocess='to-pixdata'>assets/checkbox-mixed.png</file>
<file preprocess='to-pixdata'>assets/checkbox-unchecked-dark.png</file>
<file preprocess='to-pixdata'>assets/checkbox-unchecked-insensitive-dark.png</file>
<file preprocess='to-pixdata'>assets/checkbox-unchecked-insensitive.png</file>
<file preprocess='to-pixdata'>assets/checkbox-unchecked.png</file>
<file preprocess='to-pixdata'>assets/grid-selection-checked-dark.png</file>
<file preprocess='to-pixdata'>assets/grid-selection-checked.png</file>
<file preprocess='to-pixdata'>assets/grid-selection-unchecked-dark.png</file>
<file preprocess='to-pixdata'>assets/grid-selection-unchecked.png</file>
<file preprocess='to-pixdata'>assets/menuitem-checkbox-checked-hover.png</file>
<file preprocess='to-pixdata'>assets/menuitem-checkbox-checked-insensitive.png</file>
<file preprocess='to-pixdata'>assets/menuitem-checkbox-checked.png</file>
<file preprocess='to-pixdata'>assets/menuitem-checkbox-mixed-hover.png</file>
<file preprocess='to-pixdata'>assets/menuitem-checkbox-mixed-insensitive.png</file>
<file preprocess='to-pixdata'>assets/menuitem-checkbox-mixed.png</file>
<file preprocess='to-pixdata'>assets/menuitem-radio-checked-hover.png</file>
<file preprocess='to-pixdata'>assets/menuitem-radio-checked-insensitive.png</file>
<file preprocess='to-pixdata'>assets/menuitem-radio-checked.png</file>
<file preprocess='to-pixdata'>assets/radio-checked-dark.png</file>
<file preprocess='to-pixdata'>assets/radio-checked-insensitive-dark.png</file>
<file preprocess='to-pixdata'>assets/radio-checked-insensitive.png</file>
<file preprocess='to-pixdata'>assets/radio-checked.png</file>
<file preprocess='to-pixdata'>assets/radio-mixed-dark.png</file>
<file preprocess='to-pixdata'>assets/radio-mixed-insensitive-dark.png</file>
<file preprocess='to-pixdata'>assets/radio-mixed-insensitive.png</file>
<file preprocess='to-pixdata'>assets/radio-mixed.png</file>
<file preprocess='to-pixdata'>assets/radio-unchecked-dark.png</file>
<file preprocess='to-pixdata'>assets/radio-unchecked-insensitive-dark.png</file>
<file preprocess='to-pixdata'>assets/radio-unchecked-insensitive.png</file>
<file preprocess='to-pixdata'>assets/radio-unchecked.png</file>
<file>dist/gtk.css</file>
<file>dist/gtk.css.map</file>
<file>dist/gtk-dark.css</file>
<file>dist/gtk-dark.css.map</file>
</gresource>
</gresources>

View File

@ -16,13 +16,18 @@
@include exports("tooltip") {
.tooltip {
@include linear-gradient($tooltip_bg_color);
&.background {
@include linear-gradient($tooltip_bg_color);
border: none;
border-radius: $roundness;
color: $tooltip_fg_color;
border: none;
border-radius: $roundness;
color: $tooltip_fg_color;
}
* { background-color: transparent; }
* {
background-color: transparent;
color: inherit;
}
}
}