[gnome-sound-recorder] window: emptyView style fix



commit c7a97aac16676d012bfa33c02366235272e254c5
Author: Kavan Mevada <kavanmevada gmail com>
Date:   Fri May 29 14:02:01 2020 +0530

    window: emptyView style fix

 data/ui/window.ui | 8 +++++---
 src/mainWindow.js | 4 +++-
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/window.ui b/data/ui/window.ui
index f91236a..de31402 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -233,13 +233,12 @@
                 <property name="valign">center</property>
                 <property name="orientation">vertical</property>
                 <child>
-                  <object class="GtkImage">
+                  <object class="GtkImage" id="emptyIcon">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="halign">center</property>
                     <property name="valign">center</property>
-                    <property name="icon_name">audio-input-microphone-symbolic</property>
-                    <property name="icon_size">6</property>
+                    <property name="pixel_size">96</property>
                     <style>
                       <class name="dim-label"/>
                     </style>
@@ -254,9 +253,11 @@
                   <object class="GtkLabel">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
+                    <property name="margin_top">8</property>
                     <property name="label" translatable="yes">Add Recordings</property>
                     <style>
                       <class name="dim-label"/>
+                      <class name="title-1"/>
                     </style>
                   </object>
                   <packing>
@@ -269,6 +270,7 @@
                   <object class="GtkLabel">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
+                    <property name="margin_top">4</property>
                     <property name="label" translatable="yes">Use the &lt;b&gt;Record&lt;/b&gt; button to 
make sound recordings</property>
                     <property name="use_markup">True</property>
                     <property name="justify">center</property>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 8db6cde..a607785 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -47,7 +47,7 @@ var ActiveArea = {
 
 var MainWindow = GObject.registerClass({
     Template: 'resource:///org/gnome/SoundRecorder/ui/window.ui',
-    InternalChildren: ['recordStartButton', 'recordStopButton', 'recordTimeLabel', 'appMenuButton', 
'mainStack', 'recordGrid', 'listBox'],
+    InternalChildren: ['recordStartButton', 'recordStopButton', 'recordTimeLabel', 'appMenuButton', 
'mainStack', 'recordGrid', 'listBox', 'emptyIcon'],
 }, class MainWindow extends Handy.ApplicationWindow {
 
     _init(params) {
@@ -81,6 +81,8 @@ var MainWindow = GObject.registerClass({
             return row;
         });
 
+        this._emptyIcon.icon_name = `${pkg.name}-symbolic`
+
         this._recordStartButton.connect('clicked', () => this._onRecordStart());
         this._recordStopButton.connect('clicked', () => this._onRecordStop());
         this._addAppMenu();


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