Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 122 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ members = [
"cosmic-applet-status-area",
"cosmic-applet-tiling",
"cosmic-applet-time",
"cosmic-applet-theme",
"cosmic-applet-workspaces",
"cosmic-panel-button",
"cosmic-applet-input-sources",
Expand Down
18 changes: 18 additions & 0 deletions cosmic-applet-theme/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "cosmic-applet-theme"
version = "0.1.0"
edition = "2024"
license = "GPL-3.0-only"

[dependencies]
dirs = "5.0"
i18n-embed-fl.workspace = true
i18n-embed.workspace = true
libcosmic.workspace = true
rust-embed.workspace = true
tokio.workspace = true
tracing-log.workspace = true
tracing-subscriber.workspace = true
tracing.workspace = true
zbus.workspace = true
notify = "6.1"
16 changes: 16 additions & 0 deletions cosmic-applet-theme/data/com.system76.CosmicAppletTheme.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Desktop Entry]
Type=Application
Name=Theme Toggle Applet
Comment=Toggle system light/dark theme
Exec=cosmic-applet-theme
Icon=com.system76.CosmicAppletTheme-symbolic
Terminal=false
Categories=COSMIC;
Keywords=COSMIC;Iced;
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
StartupNotify=true
NoDisplay=true
X-CosmicApplet=true
X-CosmicShrinkable=true
X-CosmicHoverPopup=Auto
X-OverflowPriority=10
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions cosmic-applet-theme/i18n.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fallback_language = "en"

[fluent]
assets_dir = "i18n"
4 changes: 4 additions & 0 deletions cosmic-applet-theme/i18n/be/cosmic_applet_theme.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
applet-theme-title = Theme Toggle
applet-theme-description = An applet to toggle between light and dark themes.

toggle-theme = Пераключыць тэму
4 changes: 4 additions & 0 deletions cosmic-applet-theme/i18n/en/cosmic_applet_theme.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
applet-theme-title = Theme Toggle
applet-theme-description = An applet to toggle between light and dark themes.

toggle-theme = Toggle Theme
Loading
Loading