Skip to content

Commit

Permalink
MetaInfo: Update light brand color, screenshots (#30)
Browse files Browse the repository at this point in the history
* Workflows: Bump Flathub container image to GNOME 46

* Meson: bump version to 1.1.2

* MetaInfo: Improve brand colors, prep release notes

* MetaInfo: update light color, screenshots

* MetaInfo: update screenshot URLs

* MetaInfo: correct missing closing tags

* WebView: try to save cookies
  • Loading branch information
cassidyjames authored Apr 23, 2024
1 parent e84535c commit 10238d8
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
20 changes: 17 additions & 3 deletions data/metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

<name>Butler</name>
<summary>Companion for Home Assistant</summary>

<branding>
<color type="primary" scheme_preference="light">#65ceff</color>
<color type="primary" scheme_preference="light">#7fd6ff</color>
<color type="primary" scheme_preference="dark">#027bb3</color>
</branding>

Expand Down Expand Up @@ -42,7 +43,7 @@
<launchable type="desktop-id">com.cassidyjames.butler.desktop</launchable>

<recommends>
<display_length compare="ge">300</display_length>
<display_length compare="ge">360</display_length>
</recommends>
<supports>
<control>pointing</control>
Expand All @@ -52,12 +53,25 @@

<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/cassidyjames/butler/1.0.0/data/screenshots/light.png</image>
<image>https://raw.githubusercontent.com/cassidyjames/butler/518b5c81e35d366fa6ea62d4835d8e9a61e039e1/data/screenshots/light.png</image>
<caption>Home Assistant dashboard with many rooms and devices</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/cassidyjames/butler/518b5c81e35d366fa6ea62d4835d8e9a61e039e1/data/screenshots/dark.png</image>
<caption>Home Assistant dashboard in dark style</caption>
</screenshot>
</screenshots>

<releases>
<release version="1.1.3" date="2024-04-23">
<description>
<p>Improved app listing</p>
<ul>
<li>Improved light brand color for Flathub and app store clients</li>
<li>Updated screenshots</li>
</ul>
</description>
</release>
<release version="1.1.2" date="2024-04-22">
<description>
<p>Improved brand colors for Flathub and app store clients</p>
Expand Down
Binary file added data/screenshots/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/screenshots/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'com.cassidyjames.butler',
'vala', 'c',
version: '1.1.2',
version: '1.1.3',
meson_version: '>=0.58',
)

Expand Down
20 changes: 19 additions & 1 deletion src/Widgets/WebView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public class Butler.WebView : WebKit.WebView {
public WebView () {
Object (
hexpand: true,
vexpand: true
vexpand: true,
network_session: new WebKit.NetworkSession (null, null)
);
}

Expand All @@ -31,6 +32,23 @@ public class Butler.WebView : WebKit.WebView {

settings = webkit_settings;

var cookie_manager = network_session.get_cookie_manager ();
cookie_manager.set_accept_policy (WebKit.CookieAcceptPolicy.ALWAYS);

string config_dir = Path.build_path (
Path.DIR_SEPARATOR_S,
Environment.get_user_config_dir (),
Environment.get_prgname ()
);

DirUtils.create_with_parents (config_dir, 0700);

string cookies = Path.build_filename (config_dir, "cookies");
cookie_manager.set_persistent_storage (
cookies,
WebKit.CookiePersistentStorage.SQLITE
);

context_menu.connect (() => {
return !is_terminal;
});
Expand Down

0 comments on commit 10238d8

Please sign in to comment.