[gnome-builder] style: move spellcheck styling to plugin



commit bca49f9b164058034ce66068447b327c9752e292
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jul 23 22:36:46 2017 -0700

    style: move spellcheck styling to plugin

 data/themes/shared.css                      |   23 -----------------------
 plugins/spellcheck/spellcheck.gresource.xml |    1 +
 plugins/spellcheck/themes/shared.css        |   23 +++++++++++++++++++++++
 3 files changed, 24 insertions(+), 23 deletions(-)
---
diff --git a/data/themes/shared.css b/data/themes/shared.css
index 3c3ebdd..d608366 100644
--- a/data/themes/shared.css
+++ b/data/themes/shared.css
@@ -14,29 +14,6 @@ filechooser actionbar button.combo {
     color: @warning_color;
 }
 
-/* styling for spellchecker */
-.gb-spellchecker list button.close:disabled,
-.gb-spellchecker list button.close {
-  background: none;
-  border: none;
-  box-shadow: none;
-  padding-left: 4px;
-  padding-right: 4px;
-}
-.gb-spellchecker list row label {
-  padding: 7px;
-}
-.gb-spellchecker list row {
-  border-bottom: 1px solid alpha(@borders, 0.2);
-}
-.gb-spellchecker list row:last-child {
-  border-bottom: none;
-}
-.countbox {
-  background-color: #b3d4fc;
-  border-radius: 3px;
-  padding: 3px;
-}
 
 
 
diff --git a/plugins/spellcheck/spellcheck.gresource.xml b/plugins/spellcheck/spellcheck.gresource.xml
index 595eeab..d8a6f59 100644
--- a/plugins/spellcheck/spellcheck.gresource.xml
+++ b/plugins/spellcheck/spellcheck.gresource.xml
@@ -3,5 +3,6 @@
   <gresource prefix="/org/gnome/builder/plugins/spellcheck-plugin">
     <file compressed="true" preprocess="xml-stripblanks">gtk/menus.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">gbp-spell-widget.ui</file>
+    <file compressed="true">themes/shared.css</file>
   </gresource>
 </gresources>
diff --git a/plugins/spellcheck/themes/shared.css b/plugins/spellcheck/themes/shared.css
new file mode 100644
index 0000000..fcb41cf
--- /dev/null
+++ b/plugins/spellcheck/themes/shared.css
@@ -0,0 +1,23 @@
+/* styling for spellchecker */
+.gb-spellchecker list button.close:disabled,
+.gb-spellchecker list button.close {
+  background: none;
+  border: none;
+  box-shadow: none;
+  padding-left: 4px;
+  padding-right: 4px;
+}
+.gb-spellchecker list row label {
+  padding: 7px;
+}
+.gb-spellchecker list row {
+  border-bottom: 1px solid alpha(@borders, 0.2);
+}
+.gb-spellchecker list row:last-child {
+  border-bottom: none;
+}
+.countbox {
+  background-color: #b3d4fc;
+  border-radius: 3px;
+  padding: 3px;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]