Skip to content

Commit

Permalink
Fresh Colors (#46)
Browse files Browse the repository at this point in the history
* Updated colors throughout the app

* Prep 3.2.0 release

* More 3.2.0 and translations prep

* Accidentally a word

* Remove unused meson post install, correct action manifest path

* Actions: fix paths
  • Loading branch information
cassidyjames authored May 24, 2024
1 parent f354694 commit 58d237b
Show file tree
Hide file tree
Showing 29 changed files with 111 additions and 119 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
with:
bundle: tally.flatpak
manifest-path: com.cassidyjames.plausible.json
manifest-path: build-aux/flatpak/com.cassidyjames.plausible.json
cache-key: "flatpak-builder-${{ github.sha }}"
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Lint
on:
pull_request:
paths:
- '**.vala'

jobs:
lint:
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

Hybrid native + web app for [Plausible Analytics](https://plausible.io).

![Screenshot](data/screenshots/sites-light.png) | ![Screenshot](data/screenshots/dashboard-dark.png)
---------------------------------------------------- | -----------------------------------------------------
![Screenshot](data/screenshots/extra/about-dark.png) | ![Screenshot](data/screenshots/extra/domain-light.png) ![Screenshot](data/screenshots/extra/logout-light.png)
![Screenshot](data/screenshots/dashboard-light.png) | ![Screenshot](data/screenshots/dashboard-dark.png)
--------------------------------------------------- | --------------------------------------------------
![Screenshot](data/screenshots/sites-dark.png) | ![Screenshot](data/screenshots/sites-light.png)

Plausible is the simple privacy-friendly alternative to Google Analytics. Tally wraps the Plausible web app in a native UI, integrating better with desktop operating systems. Native features include:

Expand All @@ -31,4 +31,3 @@ Other features include:
I recommend using GNOME Builder with default settings to build the Flatpak.

[flathub]: https://flathub.org/apps/details/com.cassidyjames.plausible

26 changes: 26 additions & 0 deletions build-aux/flatpak/com.cassidyjames.plausible.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"id": "com.cassidyjames.plausible",
"runtime": "org.gnome.Platform",
"runtime-version": "46",
"sdk": "org.gnome.Sdk",
"command": "com.cassidyjames.plausible",
"finish-args": [
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--share=network",
"--device=dri"
],
"modules": [
{
"name": "tally",
"buildsystem": "meson",
"sources": [
{
"type": "dir",
"path": "../.."
}
]
}
]
}
25 changes: 0 additions & 25 deletions build-aux/meson/post_install.py

This file was deleted.

26 changes: 0 additions & 26 deletions com.cassidyjames.plausible.json

This file was deleted.

3 changes: 2 additions & 1 deletion data/gresource.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/cassidyjames/plausible">
<gresource prefix="/com/cassidyjames/plausible/">
<file preprocess="xml-stripblanks">metainfo.xml</file>
<file>style.css</file>
<file>style-dark.css</file>
</gresource>
Expand Down
29 changes: 17 additions & 12 deletions data/metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@
<control>touch</control>
</supports>
<releases>
<release version="3.2.0" date="2024-05-24">
<description>
<p>Fresh Colors</p>
<ul>
<li>Updated colors throughout the app</li>
<li>More subtle header bar to fit in better in both light and dark styles</li>
<li>Improved About dialog</li>
<li>Preparation for translations</li>
</ul>
</description>
</release>
<release version="3.1.0" date="2024-04-22">
<description>
<p>Updated for GNOME 46</p>
Expand Down Expand Up @@ -124,22 +135,16 @@
</releases>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/cassidyjames/tally/3.0.1/data/screenshots/dashboard-dark.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/cassidyjames/tally/3.0.1/data/screenshots/dashboard-light.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/cassidyjames/tally/3.0.1/data/screenshots/sites-dark.png</image>
<image>https://raw.githubusercontent.com/cassidyjames/tally/d1723acc47ff79df9764aeacd16eeb6091934cb2/data/screenshots/dashboard-light.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/cassidyjames/tally/3.0.1/data/screenshots/sites-light.png</image>
<image>https://raw.githubusercontent.com/cassidyjames/tally/d1723acc47ff79df9764aeacd16eeb6091934cb2/data/screenshots/dashboard-dark.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/cassidyjames/tally/3.0.1/data/screenshots/login-dark.png</image>
<image>https://raw.githubusercontent.com/cassidyjames/tally/d1723acc47ff79df9764aeacd16eeb6091934cb2/data/screenshots/sites-light.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/cassidyjames/tally/3.0.1/data/screenshots/login-light.png</image>
<image>https://raw.githubusercontent.com/cassidyjames/tally/d1723acc47ff79df9764aeacd16eeb6091934cb2/data/screenshots/sites-dark.png</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.1">
Expand All @@ -152,7 +157,7 @@
<url type="help">https://cassidyjames.com/support</url>
<!--url type="contact">https://cassidyjames.com/support</url-->
<branding>
<color type="primary" scheme_preference="light">#b5b3fe</color>
<color type="primary" scheme_preference="dark">#393499</color>
<color type="primary" scheme_preference="light">#9e99fe</color>
<color type="primary" scheme_preference="dark">#352f99</color>
</branding>
</component>
Binary file modified data/screenshots/dashboard-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/dashboard-light.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 removed data/screenshots/extra/about-dark.png
Binary file not shown.
Binary file removed data/screenshots/extra/about-details-dark.png
Binary file not shown.
Binary file removed data/screenshots/extra/about-details-light.png
Binary file not shown.
Binary file removed data/screenshots/extra/about-legal-dark.png
Binary file not shown.
Binary file removed data/screenshots/extra/about-legal-light.png
Binary file not shown.
Binary file removed data/screenshots/extra/about-light.png
Binary file not shown.
Binary file removed data/screenshots/extra/domain-dark.png
Binary file not shown.
Binary file removed data/screenshots/extra/domain-light.png
Binary file not shown.
Binary file removed data/screenshots/extra/logout-dark.png
Binary file not shown.
Binary file removed data/screenshots/extra/logout-light.png
Binary file not shown.
Binary file removed data/screenshots/login-dark.png
Binary file not shown.
Binary file removed data/screenshots/login-light.png
Binary file not shown.
Binary file modified data/screenshots/sites-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/sites-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions data/style-dark.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
@define-color accent_color #9c95fd;
@define-color window_bg_color #1a202c;
@define-color dialog_bg_color #1f2937;
@define-color accent_color #99A8FE;
@define-color accent_alt_color @accent_color;

@define-color headerbar_bg_color #1e293b;

@define-color window_bg_color #1a202C;
@define-color window_fg_color #f1f5f9;
@define-color dialog_bg_color #1e293b;
17 changes: 10 additions & 7 deletions data/style.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
@define-color headerbar_bg_color #5850ec;
@define-color headerbar_fg_color #fff;
@define-color headerbar_border_color #fff;
@define-color headerbar_backdrop_color mix(@headerbar_bg_color, @window_bg_color, 0.2);
@define-color accent_color #4f46e5;
@define-color accent_alt_color #1f2961;

@define-color accent_color @headerbar_bg_color;
@define-color headerbar_bg_color #f4f5fc;
@define-color headerbar_fg_color @accent_color;
@define-color headerbar_border_color @headerbar_fg_color;
@define-color headerbar_backdrop_color mix(@headerbar_bg_color, @window_bg_color, 0.2);

@define-color window_bg_color #f9fafb;
@define-color window_bg_color #f8fafc;
@define-color window_fg_color #0f172a;
@define-color dialog_bg_color #fff;
@define-color popover_bg_color @dialog_bg_color;

.loading {
background-color: @dialog_bg_color;
background-color: @headerbar_bg_color;
color: @accent_alt_color;
}
19 changes: 13 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
project(
'com.cassidyjames.plausible',
'vala', 'c',
version: '3.1.0'
version: '3.2.0',
meson_version: '>= 0.62',
)

i18n = import('i18n')
gnome = import('gnome')

add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language:'c')

asresources = gnome.compile_resources(
'as-resources',
'data' / 'gresource.xml',
source_dir: 'data'
source_dir: 'data',
c_name: 'as',
)

config_data = configuration_data()
Expand All @@ -22,7 +25,7 @@ config_data.set_quoted('VERSION', meson.project_version())
config_file = configure_file(
input: 'src/Config.vala.in',
output: '@BASENAME@',
configuration: config_data
configuration: config_data,
)

executable(
Expand All @@ -35,13 +38,17 @@ executable(
dependencies: [
dependency('glib-2.0'),
dependency('gtk4'),
dependency('libadwaita-1'),
dependency('libadwaita-1', version: '>=1.5'),
dependency('webkitgtk-6.0'),
meson.get_compiler('vala').find_library('posix'),
],
install: true
install: true,
)

subdir('data')

meson.add_install_script('build-aux' / 'meson'/ 'post_install.py')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)
3 changes: 0 additions & 3 deletions src/App.vala
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

public class Plausible.App : Adw.Application {
public const string NAME = "Tally";
public const string DEVELOPER = "Cassidy James Blaede";
public const string EMAIL = "[email protected]";
public const string URL = "https://cassidyjames.com";

public static GLib.Settings settings;

Expand Down
Loading

0 comments on commit 58d237b

Please sign in to comment.