Skip to content

Commit 5262cd1

Browse files
authored
Dust and enhance (#97)
* Undust and enhance further the metainfo * Fix icon in README and add building the manifest * A little more space for label for longer language + more airy UI * Aerate * Ok cool
1 parent 9c86a7d commit 5262cd1

File tree

4 files changed

+55
-10
lines changed

4 files changed

+55
-10
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="data/icons/128/com.github.elfenware.badger.svg" alt="Icon" />
2+
<img src="data/icons/hicolor/128.png" alt="Icon" />
33
</p>
44

55
<h1 align="center">Badger</h1>
@@ -62,5 +62,14 @@ Then run it with:
6262
com.github.elfenware.badger
6363
```
6464

65+
Alternatively, with flatpak-builder, installation is as simple as downloading and extracting the zip archive, changing to the new repo's directory,
66+
and run the following command:
67+
68+
On elementary OS or with its appcenter remote installed
69+
70+
```bash
71+
flatpak-builder --force-clean --user --install-deps-from=appcenter --install builddir ./com.github.elfenware.badger.yml
72+
```
73+
6574
[elementary OS]: https://elementary.io
6675
[AppCenter]: https://appcenter.elementary.io/com.github.elfenware.badger

data/com.github.elfenware.badger.metainfo.xml.in

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<id>com.github.elfenware.badger</id>
55
<metadata_license>CC0</metadata_license>
66
<project_license>GPL-3.0+</project_license>
7-
<name>Badger</name>
7+
<name translate="no">Badger</name>
88
<summary>Remind yourself to not sit and stare at the screen for too long</summary>
99
<description>
1010
<p>When you are using your computer for extended periods of time, you need to relax your body every once in a while.</p>
@@ -208,23 +208,56 @@
208208
</description>
209209
</release>
210210
</releases>
211+
211212
<launchable type="desktop-id">com.github.elfenware.badger.desktop</launchable>
213+
<translation type="gettext" source_locale="en_GB">com.github.elfenware.badger</translation>
212214
<provides>
213215
<binary>com.github.elfenware.badger</binary>
214216
</provides>
215217
<content_rating type="oars-1.1"/>
218+
<recommends>
219+
<control>pointing</control>
220+
<control>touch</control>
221+
</recommends>
222+
<suggests>
223+
<id>com.github.elfenware.obliviate</id>
224+
<id>io.github.ellie_commons.jorts</id>
225+
</suggests>
216226

217-
<developer_name>Elfenware</developer_name>
227+
<developer id="com.github.elfenware">
228+
<name>Darshak Parikh</name>
229+
</developer>
230+
<project_group>Elfenware</project_group>
218231
<url type="homepage">https://github.com/elfenware/badger</url>
219232
<url type="bugtracker">https://github.com/elfenware/badger/issues</url>
220233
<url type="help">https://github.com/elfenware/badger/issues</url>
221234

222235
<update_contact>darshak_AT_protonmail.com</update_contact>
236+
237+
<categories>
238+
<category>Office</category>
239+
<category>Utility</category>
240+
<category>GTK</category>
241+
</categories>
242+
<keywords>
243+
<keyword>Reminders</keyword>
244+
<keyword>Reminder</keyword>
245+
<keyword>Selfcare</keyword>
246+
<keyword>Health</keyword>
247+
<keyword>Cute</keyword>
248+
<keyword>Simple</keyword>
249+
</keywords>
250+
223251
<screenshots>
224252
<screenshot type="default">
253+
<caption>The Badger automatically adapts to your set periodical reminders</caption>
225254
<image>https://raw.githubusercontent.com/elfenware/badger/master/data/window-screenshot.png</image>
226255
</screenshot>
227256
</screenshots>
257+
<branding>
258+
<color type="primary" scheme_preference="light">#fff</color>
259+
<color type="primary" scheme_preference="dark">#333</color>
260+
</branding>
228261
<custom>
229262
<value key="x-appcenter-color-primary">#fff</value>
230263
<value key="x-appcenter-color-primary-text">#333</value>

data/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ i18n.merge_file(
2626
install_dir: get_option('datadir') / 'metainfo'
2727
)
2828

29-
3029
#======== ICONS ========
3130

3231
# Install our icons in all the required sizes

src/MainGrid.vala

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public class Badger.MainGrid : Gtk.Box {
5858
var scale_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
5959
scale_box.vexpand = true;
6060

61-
62-
6361
/************************************************/
6462
/* Label to explain */
6563
/************************************************/
@@ -122,7 +120,7 @@ public class Badger.MainGrid : Gtk.Box {
122120
hexpand = true,
123121
halign = Gtk.Align.FILL,
124122
valign = Gtk.Align.CENTER,
125-
width_request = 300
123+
width_request = 330
126124
};
127125

128126
// Get the scale default value
@@ -149,7 +147,11 @@ public class Badger.MainGrid : Gtk.Box {
149147
});
150148

151149
// If the "all" flag is false, disable all checkboxes
152-
settings.bind ("all", check_box, "sensitive", SettingsBindFlags.GET);
150+
settings.bind (
151+
"all",
152+
check_box,
153+
"sensitive",
154+
SettingsBindFlags.GET);
153155

154156
// When the checkbox is pressed, set the option.
155157
settings.bind (
@@ -182,9 +184,11 @@ public class Badger.MainGrid : Gtk.Box {
182184
/**************************************************/
183185

184186
// If the "all" flag is false, the switch is off, hide the scales
185-
this.revealer = new Gtk.Revealer ();
187+
this.revealer = new Gtk.Revealer () {
188+
child = scale_box
189+
};
186190
revealer.set_transition_type (Gtk.RevealerTransitionType.SLIDE_DOWN);
187-
revealer.set_child (scale_box);
191+
188192
append (revealer);
189193
}
190194
}

0 commit comments

Comments
 (0)