Skip to content

Commit

Permalink
Merge pull request #1101 from alainm23/develop
Browse files Browse the repository at this point in the history
Release 4.4
  • Loading branch information
alainm23 authored Jan 10, 2024
2 parents ef20b8e + 9edf50d commit 3ac5bae
Show file tree
Hide file tree
Showing 111 changed files with 10,115 additions and 7,301 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Please do not theme this app](https://stopthemingmy.app/badge.svg)](https://stopthemingmy.app)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)

<div align="center">
<span align="center"> <img width="128" height="128" class="center" src="data/icons/hicolor/scalable/apps/io.github.alainm23.planify.svg" alt="Planify Icon"></span>
<h1 align="center">Planify</h1>
Expand Down Expand Up @@ -30,12 +33,6 @@
- 🌙️ Night mode.
- 🔁️ Recurring due dates.

### Flathub Beta
```
flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak install io.github.alainm23.planify
```

## 🛠 Compile

You'll need the following dependencies:
Expand Down
5 changes: 5 additions & 0 deletions core/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ namespace Constants {
public const int PRIORITY_2 = 3;
public const int PRIORITY_3 = 2;
public const int PRIORITY_4 = 1;
public const int SCROLL_STEPS = 6;
public const string TWITTER_URL = "https://twitter.com/useplanify";
public const string CONTACT_US = "[email protected]";
public const string TELEGRAM_GROUP = "https://t.me/+cArNTCbdT3xmOTcx";
public const string PATREON_URL = "https://www.patreon.com/join/alainm23";
public const string PAYPAL_ME_URL = "https://www.paypal.com/paypalme/alainm23";
public const string LIBERAPAY_URL = "https://liberapay.com/Alain/";
public const string KOFI_URL = "https://ko-fi.com/alainm23";
}
5 changes: 5 additions & 0 deletions core/Enum.vala
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,8 @@ public enum PickerType {
}
}
}

public enum NewTaskPosition {
TOP = 0,
BOTTOM = 1,
}
23 changes: 13 additions & 10 deletions core/Layouts/HeaderItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public class Layouts.HeaderItem : Adw.Bin {
}
}

public bool autohide_action { get; set; default = true; }

public bool show_action {
set {
action_revealer.reveal_child = value;
Expand Down Expand Up @@ -162,9 +164,9 @@ public class Layouts.HeaderItem : Adw.Bin {
listbox = new Gtk.ListBox () {
hexpand = true,
margin_top = 3,
margin_bottom = 3,
margin_start = 3,
margin_end = 3
margin_end = 3,
margin_bottom = 3
};

listbox.set_placeholder (get_placeholder ());
Expand Down Expand Up @@ -226,10 +228,6 @@ public class Layouts.HeaderItem : Adw.Bin {

child = content_revealer;

// add_button.clicked.connect (() => {
// add_activated ();
// });

listbox.row_activated.connect ((row) => {
row_activated (row);
});
Expand All @@ -242,7 +240,7 @@ public class Layouts.HeaderItem : Adw.Bin {
});

motion_gesture.leave.connect (() => {
action_revealer.reveal_child = false;
action_revealer.reveal_child = !autohide_action;
});
}

Expand All @@ -255,15 +253,14 @@ public class Layouts.HeaderItem : Adw.Bin {
placeholder_label.add_css_class ("dim-label");
placeholder_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);

var content_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0) {
var content_box = new Adw.Bin () {
margin_top = 12,
margin_bottom = 12,
margin_start = 12,
margin_end = 12,
child = placeholder_label
};

content_box.append (placeholder_label);

return content_box;
}

Expand All @@ -276,6 +273,12 @@ public class Layouts.HeaderItem : Adw.Bin {
listbox.insert (widget, position);
}

public void clear () {
foreach (unowned Gtk.Widget child in Util.get_default ().get_children (listbox) ) {
listbox.remove (child);
}
}

public void add_widget_end (Gtk.Widget widget) {
action_box.append (widget);
}
Expand Down
Loading

0 comments on commit 3ac5bae

Please sign in to comment.