Skip to content

Commit

Permalink
feat: release 4.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Mar 18, 2024
1 parent 70e5f05 commit 5dca1f5
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 31 deletions.
Binary file removed build-aux/io.github.alainm23.planify.Devel.flatpak
Binary file not shown.
8 changes: 5 additions & 3 deletions build-aux/io.github.alainm23.planify.Devel.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"app-id": "io.github.alainm23.planify",
"app-id": "io.github.alainm23.planify.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "45",
"sdk": "org.gnome.Sdk",
"command": "io.github.alainm23.planify",
"command": "io.github.alainm23.planify.Devel",
"tags": ["devel"],
"finish-args": [
"--device=dri",
"--share=ipc",
Expand Down Expand Up @@ -152,6 +153,7 @@
"name": "planify",
"builddir": true,
"buildsystem": "meson",
"config-opts": ["-Dtracing=true", "-Dprofile=development"],
"sources": [
{
"type": "dir",
Expand All @@ -160,4 +162,4 @@
]
}
]
}
}
11 changes: 5 additions & 6 deletions core/QuickAdd.vala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class Layouts.QuickAdd : Adw.Bin {
content_entry = new Gtk.Entry () {
hexpand = true,
placeholder_text = _("To-do name"),
css_classes = { "flat" }
css_classes = { "flat", "font-bold" }
};

var content_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6) {
Expand All @@ -79,7 +79,8 @@ public class Layouts.QuickAdd : Adw.Bin {
description_textview.remove_css_class ("view");

item_labels = new Widgets.ItemLabels (item) {
margin_start = 12
margin_start = 6,
top_margin = 12
};

schedule_button = new Widgets.ScheduleButton ();
Expand All @@ -90,9 +91,7 @@ public class Layouts.QuickAdd : Adw.Bin {
label_button.backend_type = item.project.backend_type;

var action_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 12) {
margin_start = 3,
margin_top = 6,
margin_bottom = 3
margin_top = 6
};

var action_box_right = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0) {
Expand Down Expand Up @@ -159,7 +158,7 @@ public class Layouts.QuickAdd : Adw.Bin {
var footer_content = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6) {
hexpand = true,
margin_bottom = 12,
margin_start = 6,
margin_start = 12,
margin_end = 12
};

Expand Down
6 changes: 6 additions & 0 deletions core/Widgets/ItemLabels.vala
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public class Widgets.ItemLabels : Adw.Bin {
);
}

public int top_margin {
set {
flowbox.margin_top = value;
}
}

construct {
flowbox = new Gtk.FlowBox () {
column_spacing = 6,
Expand Down
12 changes: 12 additions & 0 deletions data/io.github.alainm23.planify.appdata.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@
<url type="donation">https://www.patreon.com/alainm23</url>
<launchable type="desktop-id">@[email protected]</launchable>
<releases>
<release version="4.5.4" date="2024-03-18">
<description translatable="no">
<ul>
<li>Improved design and new UI icons.</li>
<li>It is now possible to mark a task as Pinned from the context menu.</li>
<li>Fixed bug that improves CalDAV sync.</li>
<li>Spanish translations added thanks to @haggen88.</li>
<li>French translation update thanks to @rene-coty.</li>
</ul>
</description>
</release>

<release version="4.5.2" date="2024-03-04">
<description translatable="no">
<ul>
Expand Down
1 change: 1 addition & 0 deletions data/io.github.alainm23.planify.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<file alias="sidebar.css" compressed="true">resources/stylesheet/sidebar.css</file>
<file alias="typography.css" compressed="true">resources/stylesheet/typography.css</file>
</gresource>

<gresource prefix="/io/github/alainm23/planify">
<file alias="index.css" compressed="true">resources/stylesheet/index.css</file>
<file alias="shortcuts.ui" compressed="true">resources/ui/shortcuts.ui</file>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'io.github.alainm23.planify',
'vala', 'c',
version: '4.5.2'
version: '4.5.4'
)

gnome = import('gnome')
Expand Down
2 changes: 1 addition & 1 deletion quick-add/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MainWindow : Adw.ApplicationWindow {

static construct {
weak Gtk.IconTheme default_theme = Gtk.IconTheme.get_for_display (Gdk.Display.get_default ());
default_theme.add_resource_path ("/io/github/alainm23/planify");
default_theme.add_resource_path ("/io/github/alainm23/planify/");
}

construct {
Expand Down
8 changes: 3 additions & 5 deletions src/App.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Planify : Adw.Application {
}
}

private static bool run_in_background = false;
// private static bool run_in_background = false;
private static bool version = false;
private static bool clear_database = false;
private static string lang = "";
Expand All @@ -42,7 +42,7 @@ public class Planify : Adw.Application {
private const OptionEntry[] OPTIONS = {
{ "version", 'v', 0, OptionArg.NONE, ref version, "Display version number", null },
{ "reset", 'r', 0, OptionArg.NONE, ref clear_database, "Reset Planify", null },
{ "background", 'b', 0, OptionArg.NONE, out run_in_background, "Run the Application in background", null },
// { "background", 'b', 0, OptionArg.NONE, out run_in_background, "Run the Application in background", null },
{ "lang", 'l', 0, OptionArg.STRING, ref lang, "Open Planify in a specific language", "LANG" },
{ null }
};
Expand Down Expand Up @@ -86,9 +86,7 @@ public class Planify : Adw.Application {
main_window.maximize ();
}

if (!run_in_background) {
main_window.show ();
}
main_window.show ();

Services.Settings.get_default ().settings.bind ("window-maximized", main_window, "maximized", SettingsBindFlags.SET);

Expand Down
9 changes: 2 additions & 7 deletions src/Dialogs/WhatsNew.vala
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,8 @@ public class Dialogs.WhatsNew : Adw.Window {
});

add_feature (
_("Nextcloud integration is available"),
_("Synchronise your task lists from Nextcloud.")
);

add_feature (
_("Option to migrate from Planner"),
_("Planner is no longer available, migrate your tasks from the Backups option in the preferences..")
_("New look"),
_("The design has been improved and new icons have been added making the user interface simpler to understand and use..")
);
}

Expand Down
14 changes: 7 additions & 7 deletions src/Layouts/ItemBoard.vala
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,13 @@ public class Layouts.ItemBoard : Layouts.ItemBase {
}

private void open_detail () {
Services.EventBus.get_default ().open_item (item);
// if (item.parent_id == "") {
// var dialog = new Dialogs.ItemView (item);
// dialog.show ();
// } else {
// Services.EventBus.get_default ().push_item (item);
// }
// Services.EventBus.get_default ().open_item (item);
if (item.parent_id == "") {
var dialog = new Dialogs.ItemView (item);
dialog.show ();
} else {
Services.EventBus.get_default ().push_item (item);
}
}

public override void checked_toggled (bool active, uint? time = null) {
Expand Down
2 changes: 1 addition & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class MainWindow : Adw.ApplicationWindow {

static construct {
weak Gtk.IconTheme default_theme = Gtk.IconTheme.get_for_display (Gdk.Display.get_default ());
default_theme.add_resource_path ("/io/github/alainm23/planify");
default_theme.add_resource_path ("/io/github/alainm23/planify/");
}

construct {
Expand Down

0 comments on commit 5dca1f5

Please sign in to comment.