diff --git a/README.md b/README.md index 43f281d..cb47842 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ + + # Retro -A retro clock that can be customized with CSS. +A customizable retro digital segment clock + +![](data/screenshots/default.png) + +![](data/screenshots/editor.png) + +![](data/screenshots/custom.png) ## Development diff --git a/data/app.appdata.xml b/data/app.appdata.xml deleted file mode 100644 index 28b2678..0000000 --- a/data/app.appdata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - re.sonny.Retro.desktop - CC0-1.0 - GPL-3.0-or-later - -

No description

-
-
diff --git a/data/app.desktop b/data/app.desktop index f2fb827..f3eb990 100644 --- a/data/app.desktop +++ b/data/app.desktop @@ -1,8 +1,8 @@ [Desktop Entry] -Name=retro +Name=Retro Exec=re.sonny.Retro Icon=re.sonny.Retro Terminal=false Type=Application -Categories=GTK; +Categories=GTK;GNOME;Education;Utility;Amusement;Clock; StartupNotify=true diff --git a/data/app.metainfo.xml b/data/app.metainfo.xml new file mode 100644 index 0000000..7e9508d --- /dev/null +++ b/data/app.metainfo.xml @@ -0,0 +1,48 @@ + + + re.sonny.Retro.desktop + CC0-1.0 + GPL-3.0 + A customizable retro digital segment clock + +

Retro is a simple toy clock that can be customized with CSS.

+
+ https://retro.sonny.re + https://retro.sonny.re/feedback + https://retro.sonny.re/donate + + + + + https://raw.githubusercontent.com/sonnyp/Retro/main/data/screenshots/default.png + + + + + https://raw.githubusercontent.com/sonnyp/Retro/main/data/screenshots/editor.png + + + + + https://raw.githubusercontent.com/sonnyp/Retro/main/data/screenshots/custom.png + + + + + + + This is the first release of Retro. Enjoy. + + + + HiDpiIcon + HighContrast + ModernToolkit + + + #FF7800 + + + [rgb(255, 120, 0)] + +
diff --git a/data/icon-devel.svg b/data/icon-devel.svg new file mode 100644 index 0000000..72fbfdc --- /dev/null +++ b/data/icon-devel.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/icon-source.svg b/data/icon-source.svg new file mode 100644 index 0000000..bc8aa94 --- /dev/null +++ b/data/icon-source.svg @@ -0,0 +1,3083 @@ + + + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + GNOME Design Team + + + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hicolor + Symbolic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + battery is full and there is no a/c connected. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + diff --git a/data/icon-symbolic.svg b/data/icon-symbolic.svg index 0444828..d288171 100644 --- a/data/icon-symbolic.svg +++ b/data/icon-symbolic.svg @@ -1 +1,7 @@ - \ No newline at end of file + + + + + + + diff --git a/data/icon.png b/data/icon.png new file mode 100644 index 0000000..9ad8e35 Binary files /dev/null and b/data/icon.png differ diff --git a/data/icon.svg b/data/icon.svg index a74c4df..afa17b1 100644 --- a/data/icon.svg +++ b/data/icon.svg @@ -1,130 +1,17 @@ - - - - - - - - - - - - - - image/svg+xml - - - - - - - - application-x-executable - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/data/screenshots/custom.png b/data/screenshots/custom.png new file mode 100644 index 0000000..d58db0f Binary files /dev/null and b/data/screenshots/custom.png differ diff --git a/data/screenshots/default.png b/data/screenshots/default.png new file mode 100644 index 0000000..648cc7b Binary files /dev/null and b/data/screenshots/default.png differ diff --git a/data/screenshots/editor.png b/data/screenshots/editor.png new file mode 100644 index 0000000..ccdafab Binary files /dev/null and b/data/screenshots/editor.png differ diff --git a/re.sonny.Retro.json b/re.sonny.Retro.json index 9b8bed7..2ece44e 100644 --- a/re.sonny.Retro.json +++ b/re.sonny.Retro.json @@ -32,9 +32,8 @@ ], "sources": [ { - "type": "git", - "url": "https://github.com/sonnyp/troll.git", - "commit": "8d7c2be66a4bf1cbb2081121997a33662fc19cd0" + "type": "dir", + "path": "troll" } ] }, @@ -42,7 +41,7 @@ "name": "Retro", "buildsystem": "simple", "build-commands": [ - "install -D data/app.appdata.xml /app/share/metainfo/re.sonny.Retro.appdata.xml", + "install -D data/app.metainfo.xml /app/share/metainfo/re.sonny.Retro.metainfo.xml", "install -D data/app.desktop /app/share/applications/re.sonny.Retro.desktop", "install -D data/app.gschema.xml /app/share/glib-2.0/schemas/re.sonny.Retro.gschema.xml", "install -D data/icon-symbolic.svg /app/share/icons/hicolor/symbolic/apps/re.sonny.Retro-symbolic.svg", diff --git a/src/Editor.js b/src/Editor.js index 8205003..fd1f693 100644 --- a/src/Editor.js +++ b/src/Editor.js @@ -2,7 +2,7 @@ import GObject from "gi://GObject"; import GLib from "gi://GLib"; import Adw from "gi://Adw"; import Gtk from "gi://Gtk"; -import Source from "gi://GtkSource"; +import Source from "gi://GtkSource?version=5"; import Pango from "gi://Pango"; import Template from "./editor.blp" assert { type: "uri" }; @@ -16,6 +16,7 @@ const scheme_manager = Source.StyleSchemeManager.get_default(); const style_manager = Adw.StyleManager.get_default(); const language = language_manager.get_language("css"); +Source.init(); class EditorWindow extends Gtk.Window { constructor({ application, default_style, file, text, onChange }) { super({ application }); diff --git a/src/main.js b/src/main.js index a8cd61d..0bb0dde 100644 --- a/src/main.js +++ b/src/main.js @@ -3,14 +3,11 @@ import GLib from "gi://GLib"; import "gi://Gtk?version=4.0"; import "gi://Adw?version=1"; -import Source from "gi://GtkSource?version=5"; import RetroApplication from "./Application.js"; import "./style.css"; -Source.init(); - export function main(argv) { const application = new RetroApplication(); diff --git a/src/style.css b/src/style.css index a368fa3..6ba6b8d 100644 --- a/src/style.css +++ b/src/style.css @@ -1,5 +1,5 @@ #window { - background-color: #fb7c00; + background-color: #ff7800; padding: 16px; border: solid 8px black; }