Skip to content

Commit

Permalink
Flatpak update
Browse files Browse the repository at this point in the history
  • Loading branch information
donadigo committed Oct 23, 2021
1 parent bb1b1fb commit 9cc9a3b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build/

.flatpak-builder
*~
25 changes: 25 additions & 0 deletions com.github.donadigo.appeditor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

app-id: com.github.donadigo.appeditor
runtime: io.elementary.Platform
runtime-version: '6'
sdk: io.elementary.Sdk
command: com.github.donadigo.appeditor
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --share=network
- --filesystem=home:ro
cleanup:
- '*.a'
- '*.la'
- '/include'
modules:
- name: eddy
buildsystem: meson
builddir: true
sources:
- type: dir
path: .
config-opts:
- --buildtype=release
4 changes: 4 additions & 0 deletions data/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ window {
color: transparent;
font-size: 0;
text-shadow: none;
}

entry {
border-bottom-color: rgba(0, 0, 0, 0.2);
}
1 change: 1 addition & 0 deletions data/com.github.donadigo.appeditor.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
</content_rating>

<custom>
<value key="x-appcenter-stripe">pk_live_a5CWlfLgKcxATZoB4vRa50UP006vX7CjBc</value>
<value key="x-appcenter-color-primary">#32e3ca</value>
<value key="x-appcenter-color-primary-text">#0A332D</value>
<value key="x-appcenter-suggested-price">5</value>
Expand Down
9 changes: 9 additions & 0 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ public class AppEditor.Application : Gtk.Application {
window.present ();
}

var granite_settings = Granite.Settings.get_default ();
var gtk_settings = Gtk.Settings.get_default ();

gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;

granite_settings.notify["prefers-color-scheme"].connect (() => {
gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
});

if (create_exec_filename != null) {
var file = File.new_for_commandline_arg (create_exec_filename);
string? basename = file.get_basename ();
Expand Down

0 comments on commit 9cc9a3b

Please sign in to comment.