Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Switched to Libadwaita theme
Browse files Browse the repository at this point in the history
  • Loading branch information
adhadse committed Aug 12, 2022
1 parent cc9482e commit 014ea80
Show file tree
Hide file tree
Showing 37 changed files with 1,075 additions and 600 deletions.
24 changes: 22 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ edition = "2021"
[dependencies]
log = "0.4"
pretty_env_logger = "0.4"
gettext-rs = { version = "0.7", features = ["gettext-system"] }
once_cell = "1.9"
gtk = {version = "0.4", package = "gtk4"}
gtk-macros = "0.3.0"
strum = "0.20"
strum_macros = "0.20"

[dependencies.gtk]
package = "gtk4"
version = "0.4.4"
features = ["v4_6"]

[dependencies.gio]
package = "gio"
version = "0.15.2"
features = ["v2_70"]

[dependencies.adw]
package = "libadwaita"
version = "0.1.0"
# features = ["v1_2"]

[dependencies.gettext-rs]
version = "0.7.0"
features = ["gettext-system"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ An MVP in progress:

<div align="center">

![Main window](data/resources/screenshots/screenshot1.png)
![Main window](data/screenshots/screenshot1.png)

</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "com.anuragdhadse.Bookx.Devel",
"id": "com.anuragdhadse.bookx.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "42",
"sdk": "org.gnome.Sdk",
Expand All @@ -10,6 +10,7 @@
"finish-args": [
"--socket=fallback-x11",
"--socket=wayland",
"--socket=session-bus",
"--device=dri",
"--env=RUST_LOG=bookx=debug",
"--env=G_MESSAGES_DEBUG=none",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[Desktop Entry]
Name=Bookx
Comment=Write a GTK + Rust application
Name=@NAME@
Comment=A Modern, Open Source GTK4 ebook manager
Type=Application
Exec=bookx
Exec=@PKGNAME@
Terminal=false
Categories=GNOME;GTK;
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=Gnome;GTK;
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=@icon@
Icon=@APP_ID@
StartupNotify=true
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/anuragdhadse/bookx/">
<gresource prefix="/com/anuragdhadse/Bookx/">
<!-- see https://gtk-rs.org/gtk4-rs/git/docs/gtk4/struct.Application.html#automatic-resources -->
<file compressed="true" preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">ui/shortcuts.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/window.ui</file>
<file compressed="true">style.css</file>
</gresource>
</gresources>

Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<schemalist>
<schema path="/com/anuragdhadse/bookx/" id="@app-id@" gettext-domain="@gettext-package@">
<schema path="/com/anuragdhadse/Bookx/" id="@APP_ID@" gettext-domain="@PKGNAME@">
<key name="window-width" type="i">
<default>600</default>
<default>950</default>
<summary>Window width</summary>
</key>
<key name="window-height" type="i">
<default>400</default>
<default>650</default>
<summary>Window height</summary>
</key>
<key name="window-previous-width" type="i">
<default>950</default>
</key>
<key name="window-previous-height" type="i">
<default>650</default>
</key>
<key name="is-maximized" type="b">
<default>false</default>
<default>true</default>
<summary>Window maximized state</summary>
</key>
</schema>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Anurag Dhadse 2022 <[email protected]> -->
<component type="desktop-application">
<id>@app-id@</id>
<id>@APP_ID@</id>
<metadata_license>CC0</metadata_license>
<!-- Insert your license of choice here -->
<project_license>APACHE20</project_license>
<name>Bookx</name>
<summary>A Modern, Open Source GTK4 ebook manager</summary>
<description>
<p>A Modern, Open Source GTK4 application for ebook managment written in Rust.</p>
<p>A Modern, Open Source GTK4 application for ebook management powered by Rust.</p>
</description>
<screenshots>
<screenshot type="default">
Expand All @@ -32,6 +32,6 @@
</kudos>
<developer_name>Anurag Dhadse</developer_name>
<update_contact>[email protected]</update_contact>
<translation type="gettext">@gettext-package@</translation>
<launchable type="desktop-id">@app-id@.desktop</launchable>
<translation type="gettext">@PKGNAME@</translation>
<launchable type="desktop-id">@APP_ID@.desktop</launchable>
</component>
59 changes: 0 additions & 59 deletions data/icons/com.anuragdhadse.bookx-symbolic.svg

This file was deleted.

147 changes: 0 additions & 147 deletions data/icons/com.anuragdhadse.bookx.Devel.svg

This file was deleted.

Loading

0 comments on commit 014ea80

Please sign in to comment.