From a0666219beea955fad2c179edb722a6ab6fb4636 Mon Sep 17 00:00:00 2001 From: Alain Date: Thu, 11 Jul 2024 18:44:51 -0500 Subject: [PATCH 1/2] Release 4.9.0 --- ....github.alainm23.planify.appdata.xml.in.in | 15 ++++++++++++- meson.build | 2 +- src/Layouts/HeaderBar.vala | 21 +++++++++++++++++++ src/Views/Today.vala | 7 ++++--- 4 files changed, 40 insertions(+), 5 deletions(-) diff --git a/data/io.github.alainm23.planify.appdata.xml.in.in b/data/io.github.alainm23.planify.appdata.xml.in.in index 018c360fc..0d5fc96dc 100644 --- a/data/io.github.alainm23.planify.appdata.xml.in.in +++ b/data/io.github.alainm23.planify.appdata.xml.in.in @@ -60,13 +60,26 @@ Alain alainmh23@gmail.com - https://github.com/alainm23/planify + https://useplanify.com/ https://github.com/alainm23/planify/issues https://github.com/alainm23/planify https://github.com/alainm23/planify/tree/master/po#readme https://www.patreon.com/alainm23 @appid@.desktop + + +
    +
  • Added feature to switch between task and note..
  • +
  • Added a task change history feature.
  • +
  • Fixed bug when importing backup and not recovering labels.
  • +
  • Hindi translation update thanks to @Scrambled777.
  • +
  • Koren translation added thanks to @.myunsyeya.
  • +
  • Spanish translation update thanks to @haggen88.
  • +
+
+
+
    diff --git a/meson.build b/meson.build index ee17e0d48..17cde2f36 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'io.github.alainm23.planify', 'vala', 'c', - version: '4.8.4' + version: '4.9.0' ) gnome = import('gnome') diff --git a/src/Layouts/HeaderBar.vala b/src/Layouts/HeaderBar.vala index f966ac604..db4481003 100644 --- a/src/Layouts/HeaderBar.vala +++ b/src/Layouts/HeaderBar.vala @@ -22,6 +22,7 @@ public class Layouts.HeaderBar : Adw.Bin { private Adw.HeaderBar headerbar; private Gtk.Label title_label; + private Gtk.Label title2_label; private Gtk.Revealer back_button_revealer; private Gtk.Box start_box; private Gtk.Button back_button; @@ -39,6 +40,18 @@ public class Layouts.HeaderBar : Adw.Bin { } } + private string _title2; + public string title2 { + set { + _title2 = value; + title2_label.label = _title2; + } + + get { + return _title; + } + } + public bool back_revealer { set { back_button_revealer.reveal_child = value; @@ -79,11 +92,19 @@ public class Layouts.HeaderBar : Adw.Bin { css_classes = { "font-bold" }, ellipsize = Pango.EllipsizeMode.END }; + + title2_label = new Gtk.Label (null) { + css_classes = { "font-bold", "caption" }, + ellipsize = Pango.EllipsizeMode.END, + margin_start = 6, + margin_top = 3 + }; start_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 3); start_box.append (sidebar_button); start_box.append (back_button_revealer); start_box.append (title_label); + start_box.append (title2_label); headerbar = new Adw.HeaderBar () { hexpand = true, diff --git a/src/Views/Today.vala b/src/Views/Today.vala index debe5fcda..3820cf7a0 100644 --- a/src/Views/Today.vala +++ b/src/Views/Today.vala @@ -538,12 +538,13 @@ public class Views.Today : Adw.Bin { } public void update_today_label () { - var date = new GLib.DateTime.now_local (); - var date_format = "%s %s".printf (date.format ("%a"), + var date_format = "%s %s".printf ( + new GLib.DateTime.now_local ().format ("%a"), date.format ( Granite.DateTime.get_default_date_format (false, true, false) )); - headerbar.title = "%s %s".printf (today_label, date_format); + headerbar.title = today_label; + headerbar.title2 = date_format; } private Gtk.Popover build_view_setting_popover () { From 68e95f2f082bce0b26ee1d9bae73ebb7bc6285b7 Mon Sep 17 00:00:00 2001 From: Alain Date: Thu, 11 Jul 2024 18:47:49 -0500 Subject: [PATCH 2/2] feat: update appdata issue --- data/io.github.alainm23.planify.appdata.xml.in.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/io.github.alainm23.planify.appdata.xml.in.in b/data/io.github.alainm23.planify.appdata.xml.in.in index 0d5fc96dc..5a2a85809 100644 --- a/data/io.github.alainm23.planify.appdata.xml.in.in +++ b/data/io.github.alainm23.planify.appdata.xml.in.in @@ -74,7 +74,7 @@
  • Added a task change history feature.
  • Fixed bug when importing backup and not recovering labels.
  • Hindi translation update thanks to @Scrambled777.
  • -
  • Koren translation added thanks to @.myunsyeya.
  • +
  • Koren translation added thanks to @myunsyeya.
  • Spanish translation update thanks to @haggen88.