Hello community,

here is the log from the commit of package yishu for openSUSE:Factory checked 
in at 2019-08-07 14:00:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yishu (Old)
 and      /work/SRC/openSUSE:Factory/.yishu.new.9556 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yishu"

Wed Aug  7 14:00:54 2019 rev:7 rq:721436 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yishu/yishu.changes      2019-06-12 
13:12:16.912943599 +0200
+++ /work/SRC/openSUSE:Factory/.yishu.new.9556/yishu.changes    2019-08-07 
14:00:57.128853169 +0200
@@ -1,0 +2,7 @@
+Mon Jul 29 15:43:49 UTC 2019 - Alexei Podvalsky <[email protected]>
+
+- Update to 1.2.0:
+  * App has a redesign
+  * Removed Del keybind - it was legacy code
+
+-------------------------------------------------------------------

Old:
----
  yishu-1.1.7.tar.gz

New:
----
  yishu-1.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yishu.spec ++++++
--- /var/tmp/diff_new_pack.WfmVh6/_old  2019-08-07 14:00:57.652853164 +0200
+++ /var/tmp/diff_new_pack.WfmVh6/_new  2019-08-07 14:00:57.660853164 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yishu
-Version:        1.1.7
+Version:        1.2.0
 Release:        0
 Summary:        A bespoke and simple Todo.txt client
 License:        GPL-3.0-or-later

++++++ yishu-1.1.7.tar.gz -> yishu-1.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.1.7/.github/FUNDING.yml 
new/yishu-1.2.0/.github/FUNDING.yml
--- old/yishu-1.1.7/.github/FUNDING.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/yishu-1.2.0/.github/FUNDING.yml 2019-07-27 23:34:41.000000000 +0200
@@ -0,0 +1,3 @@
+# These are supported funding model platforms
+
+patreon: lainsce
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yishu-1.1.7/data/com.github.lainsce.yishu.appdata.xml.in 
new/yishu-1.2.0/data/com.github.lainsce.yishu.appdata.xml.in
--- old/yishu-1.1.7/data/com.github.lainsce.yishu.appdata.xml.in        
2019-04-25 05:23:48.000000000 +0200
+++ new/yishu-1.2.0/data/com.github.lainsce.yishu.appdata.xml.in        
2019-07-27 23:34:41.000000000 +0200
@@ -53,6 +53,15 @@
         </screenshot>
     </screenshots>
     <releases>
+        <release version="1.1.2" date="2019-07-30">
+            <description>
+                <p>Release: Redesign and Fixes</p>
+                <ul>
+                    <li>App has a redesign</li>
+                    <li>Removed Del keybind - it was legacy code</li>
+                </ul>
+            </description>
+        </release>
         <release version="1.1.1" date="2019-04-26">
             <description>
                 <p>Release: Contrast Rebellion</p>
Binary files old/yishu-1.1.7/data/shot.png and new/yishu-1.2.0/data/shot.png 
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.1.7/data/stylesheet.css 
new/yishu-1.2.0/data/stylesheet.css
--- old/yishu-1.1.7/data/stylesheet.css 2019-04-25 05:23:48.000000000 +0200
+++ new/yishu-1.2.0/data/stylesheet.css 2019-07-27 23:34:41.000000000 +0200
@@ -1,20 +1,43 @@
-@define-color colorPrimary #ACE580;
+@define-color colorAccent #74C02E;
 @define-color textColorPrimary #333333;
 
 treeview header button,
 column-header .button {
-   background-image:
-        linear-gradient(
-           to bottom,
-           shade (
-               @bg_color,
-               1.1
-           ),
-           @bg_color
-        );
+   background-image: none;
+   background-color: transparent;
+   border: 1px solid transparent;
    padding: 4px 2px;
 }
 
+.yi-titlebar {
+   background-image: none;
+   background-color: @bg_color;
+   border: 1px solid @bg_color;
+   box-shadow: none;
+   color: @fg_color;
+   padding: 4px 2px;
+}
+
+.yi-searchbar {
+    background-image: none;
+    background-color: shade(@bg_color,0.90);
+    border: 1px solid @bg_color;
+    border-radius: 30px;
+    box-shadow: none;
+    color: @fg_color;
+    padding: 6px;
+ }
+
+.yi-titlebar image {
+    color: @fg_color;
+    box-shadow: none;
+    -gtk-icon-shadow: none;
+}
+
+.yi-button {
+    border-radius: 35px;
+}
+
 treeview header button:last-child,
 column-header:last-child .button {
     border-right-width: 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.1.7/meson.build new/yishu-1.2.0/meson.build
--- old/yishu-1.1.7/meson.build 2019-04-25 05:23:48.000000000 +0200
+++ new/yishu-1.2.0/meson.build 2019-07-27 23:34:41.000000000 +0200
@@ -1,6 +1,6 @@
 # Name our project
 project('com.github.lainsce.yishu', ['vala', 'c'],
-    version: '1.0.8'
+    version: '1.1.0'
 )
 
 # Import main lib files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.1.7/src/Application.vala 
new/yishu-1.2.0/src/Application.vala
--- old/yishu-1.1.7/src/Application.vala        2019-04-25 05:23:48.000000000 
+0200
+++ new/yishu-1.2.0/src/Application.vala        2019-07-27 23:34:41.000000000 
+0200
@@ -70,7 +70,10 @@
                        tasks_list_store = new Gtk.ListStore (6, typeof 
(string), typeof(string), typeof(GLib.Object), typeof(bool), typeof(bool), 
typeof(int));
                        setup_model();
                        window.tree_view.set_model(tasks_model_sort);
-            search_entry = new SearchTasks (window.tree_view, 
tasks_model_sort);
+                       search_entry = new SearchTasks (window.tree_view, 
tasks_model_sort);
+                       var header_context = search_entry.get_style_context ();
+            header_context.add_class (Gtk.STYLE_CLASS_FLAT);
+            header_context.add_class ("yi-searchbar");
                        search_entry.placeholder_text = _("Search task");
                        search_entry.set_tooltip_text (_("Type Task Name"));
             window.toolbar.set_custom_title(search_entry);
@@ -185,7 +188,6 @@
                        }
 
                        edit_task_menu_item.add_accelerator("activate", 
accel_group_popup, Gdk.Key.F2, 0, Gtk.AccelFlags.VISIBLE);
-                       delete_task_menu_item.add_accelerator("activate", 
accel_group_popup, Gdk.Key.Delete, 0, Gtk.AccelFlags.VISIBLE);
                        toggle_done_menu_item.add_accelerator("activate", 
accel_group_popup, Gdk.Key.space, 0, Gtk.AccelFlags.VISIBLE);
                        edit_task_menu_item.activate.connect(edit_task);
                        delete_task_menu_item.activate.connect(delete_task);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.1.7/src/MainWindow.vala 
new/yishu-1.2.0/src/MainWindow.vala
--- old/yishu-1.1.7/src/MainWindow.vala 2019-04-25 05:23:48.000000000 +0200
+++ new/yishu-1.2.0/src/MainWindow.vala 2019-07-27 23:34:41.000000000 +0200
@@ -42,7 +42,7 @@
             GLib.Object (application: application,
             icon_name: "com.github.lainsce.yishu",
             height_request: 600,
-            width_request: 600,
+            width_request: 500,
             title: N_("Yishu"));
         }
 
@@ -67,21 +67,16 @@
 
             var settings = AppSettings.get_default ();
             int x = settings.window_x;
-                       int y = settings.window_y;
+            int y = settings.window_y;
+            int w = settings.saved_state_width;
+            int h = settings.saved_state_height;
 
             if (x != -1 && y != -1) {
                 move (x, y);
             }
 
-            if (Gtk.get_minor_version() < 20) {
-                set_default_size (settings.saved_state_width, 
settings.saved_state_height);
-            } else {
-                if (settings.saved_state_height != -1 ||  
settings.saved_state_width != -1) {
-                    var rect = Gtk.Allocation ();
-                    rect.height = settings.saved_state_height;
-                    rect.width = settings.saved_state_width;
-                    set_allocation (rect);
-                }
+            if (w != -1 && h != -1) {
+                resize (w, h);
             }
 
                        var vbox = new Box(Gtk.Orientation.VERTICAL, 0);
@@ -98,6 +93,8 @@
             this.set_titlebar(toolbar);
             toolbar.set_show_close_button (true);
             toolbar.has_subtitle = false;
+            var header_context = toolbar.get_style_context ();
+            header_context.add_class ("yi-titlebar");
 
                        add_button = new Gtk.Button ();
             add_button.set_image (new Gtk.Image.from_icon_name 
("appointment-new", Gtk.IconSize.LARGE_TOOLBAR));
@@ -150,26 +147,15 @@
         public override bool delete_event (Gdk.EventAny event) {
             int x, y;
             int w, h;
-            Gtk.Allocation rect;
             var settings = AppSettings.get_default ();
 
-            if (Gtk.get_minor_version() < 20) {
-                get_position (out x, out y);
-                get_size(out w, out h);
-
-                settings.window_x = x;
-                settings.window_y = y;
-                settings.saved_state_width = w;
-                settings.saved_state_height = h;
-            } else {
-                get_position (out x, out y);
-                get_allocation (out rect);
-
-                settings.saved_state_width = rect.width;
-                settings.saved_state_height = rect.height;
-                settings.window_x = x;
-                settings.window_y = y;
-            }
+            get_position (out x, out y);
+            get_size(out w, out h);
+
+            settings.window_x = x;
+            settings.window_y = y;
+            settings.saved_state_width = w;
+            settings.saved_state_height = h;
             return false;
         }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.1.7/src/TaskDialog.vala 
new/yishu-1.2.0/src/TaskDialog.vala
--- old/yishu-1.1.7/src/TaskDialog.vala 2019-04-25 05:23:48.000000000 +0200
+++ new/yishu-1.2.0/src/TaskDialog.vala 2019-07-27 23:34:41.000000000 +0200
@@ -23,7 +23,7 @@
                public Gtk.Entry entry;
                private Gtk.EntryCompletion completion;
                private Gtk.ListStore list_store;
-               private Gtk.ButtonBox bbox;
+               private Gtk.Grid bbox;
                
                public TaskDialog (Gtk.Window? parent) {
                        Object (
@@ -60,27 +60,39 @@
                                this.response(Gtk.ResponseType.ACCEPT);
                        });
                        
-                       bbox = new Gtk.ButtonBox(Gtk.Orientation.HORIZONTAL);
-                       bbox.set_spacing (6);
+                       bbox = new Gtk.Grid ();
+                       bbox.set_column_spacing (6);
                        bbox.margin_start = 12;
                        var button = new Button.with_label("A");
+                       var header_context = button.get_style_context ();
+            header_context.add_class ("yi-button");
                        bbox.add(button);
                        button.clicked.connect(on_priority_button_clicked);
-                       button = new Button.with_label("B");
-                       bbox.add(button);
-                       button.clicked.connect(on_priority_button_clicked);
-                       button = new Button.with_label("C");
-                       bbox.add(button);
-                       button.clicked.connect(on_priority_button_clicked);
-                       button = new Button.with_label("D");
-                       bbox.add(button);
-                       button.clicked.connect(on_priority_button_clicked);
-                       button = new Button.with_label("E");
-                       bbox.add(button);
-                       button.clicked.connect(on_priority_button_clicked);
-                       button = new Button.with_label("F");
-                       bbox.add(button);
-                       button.clicked.connect(on_priority_button_clicked);
+                       var button2 = new Button.with_label("B");
+                       var header_context2 = button2.get_style_context ();
+            header_context2.add_class ("yi-button");
+                       bbox.add(button2);
+                       button2.clicked.connect(on_priority_button_clicked);
+                       var button3 = new Button.with_label("C");
+                       var header_context3 = button3.get_style_context ();
+            header_context3.add_class ("yi-button");
+                       bbox.add(button3);
+                       button3.clicked.connect(on_priority_button_clicked);
+                       var button4 = new Button.with_label("D");
+                       var header_context4 = button4.get_style_context ();
+            header_context4.add_class ("yi-button");
+                       bbox.add(button4);
+                       button4.clicked.connect(on_priority_button_clicked);
+                       var button5 = new Button.with_label("E");
+                       var header_context5 = button5.get_style_context ();
+            header_context5.add_class ("yi-button");
+                       bbox.add(button5);
+                       button5.clicked.connect(on_priority_button_clicked);
+                       var button6 = new Button.with_label("F");
+                       var header_context6 = button6.get_style_context ();
+                       bbox.add(button6);
+                       button6.clicked.connect(on_priority_button_clicked);
+            header_context6.add_class ("yi-button");
                        
                        var task_help = new Gtk.Image.from_icon_name 
("help-info-symbolic", Gtk.IconSize.BUTTON);
                        task_help.halign = Gtk.Align.START;
@@ -93,6 +105,7 @@
                        
                        var main_grid = new Gtk.Grid();
                        main_grid.margin = 6;
+                       main_grid.margin_top = 0;
                        main_grid.row_spacing = 6;
                        main_grid.column_spacing = 12;
                        main_grid.attach (task_label, 0, 0, 1, 1);


Reply via email to