[libadwaita/wip/exalm/error-warning-success: 92/92] tmp




commit bf13fe8a620a446e98b28bdcd2d5f72e10ce7032
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Dec 1 18:18:20 2021 +0500

    tmp

 demo/adw-style-demo-window.ui | 52 +++++++++++++++++++++++++++++++++++++++++++
 demo/style.css                | 15 +++++++++++++
 2 files changed, 67 insertions(+)
---
diff --git a/demo/adw-style-demo-window.ui b/demo/adw-style-demo-window.ui
index 584a6f0f..05b931b2 100644
--- a/demo/adw-style-demo-window.ui
+++ b/demo/adw-style-demo-window.ui
@@ -210,6 +210,58 @@ The "opaque" style class allows to create buttons with custom colors that look s
                             </child>
                           </object>
                         </child>
+                        <child>
+                          <object class="GtkFlowBoxChild">
+                            <property name="focusable">False</property>
+                            <child>
+                              <object class="GtkBox">
+                                <property name="spacing">6</property>
+                                <property name="homogeneous">True</property>
+                                <child>
+                                  <object class="GtkButton">
+                                    <property name="label" translatable="yes">Success (tmp)</property>
+                                    <property name="name">custom-button-5</property>
+                                    <property name="tooltip-text">opaque</property>
+                                    <style>
+                                      <class name="opaque"/>
+                                    </style>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkButton">
+                                    <property name="label" translatable="yes">Warning (tmp)</property>
+                                    <property name="name">custom-button-6</property>
+                                    <property name="tooltip-text">opaque</property>
+                                    <style>
+                                      <class name="opaque"/>
+                                    </style>
+                                  </object>
+                                </child>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="GtkFlowBoxChild">
+                            <property name="focusable">False</property>
+                            <child>
+                              <object class="GtkBox">
+                                <property name="spacing">6</property>
+                                <property name="homogeneous">True</property>
+                                <child>
+                                  <object class="GtkButton">
+                                    <property name="label" translatable="yes">Error (tmp)</property>
+                                    <property name="name">custom-button-7</property>
+                                    <property name="tooltip-text">opaque</property>
+                                    <style>
+                                      <class name="opaque"/>
+                                    </style>
+                                  </object>
+                                </child>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
                       </object>
                     </child>
                     <child>
diff --git a/demo/style.css b/demo/style.css
index ff516754..5a10708b 100644
--- a/demo/style.css
+++ b/demo/style.css
@@ -50,6 +50,21 @@ flowbox.inline flowboxchild {
   background-color: @orange_4;
 }
 
+#custom-button-5 {
+  color: @success_fg_color;
+  background-color: @success_bg_color;
+}
+
+#custom-button-6 {
+  color: @warning_fg_color;
+  background-color: @warning_bg_color;
+}
+
+#custom-button-7 {
+  color: @error_fg_color;
+  background-color: @error_bg_color;
+}
+
 .htranslate {
   min-width: 30px;
   min-height: 30px;


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