Skip to content

Commit

Permalink
improv: move available themes to context drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz committed Oct 3, 2024
1 parent 64e8711 commit 0c7c1f1
Show file tree
Hide file tree
Showing 14 changed files with 575 additions and 133 deletions.
83 changes: 83 additions & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pretty_env_logger = "0.5.0"
reqwest = { version = "0.12", features = ["json"] }
ron = "0.8.1"
rust-embed = "8.3.0"
paste = "1.0"

[dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
Expand All @@ -36,3 +37,6 @@ features = ["derive"]
[dependencies.tokio]
version = "1.35.1"
features = ["macros", "fs", "rt"]

[build-dependencies]
vergen = { version = "8", features = ["git", "gitcl"] }
17 changes: 17 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Rebuild if i18n files change
println!("cargo:rerun-if-changed=i18n");

// Emit version information (if not cached by just vendor)
let mut vergen = vergen::EmitBuilder::builder();
println!("cargo:rerun-if-env-changed=VERGEN_GIT_COMMIT_DATE");
if std::env::var_os("VERGEN_GIT_COMMIT_DATE").is_none() {
vergen.git_commit_date();
}
println!("cargo:rerun-if-env-changed=VERGEN_GIT_SHA");
if std::env::var_os("VERGEN_GIT_SHA").is_none() {
vergen.git_sha(false);
}
vergen.fail_on_error().emit()?;
Ok(())
}
20 changes: 20 additions & 0 deletions i18n/en/cosmic_ext_tweaks.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ color-schemes-error = Error loading color schemes
import-color-scheme = Import color scheme
delete-color-scheme = Delete color scheme
install-color-scheme = Install color scheme
find-color-schemes = Find color schemes
open-containing-folder = Open containing folder
open-link = Open link
installed = Installed
available = Available
loading = Loading...
show-more = Show more
settings = Settings
about = About
find-themes = Find themes
# Panel only
show-panel = Show panel
Expand All @@ -30,3 +34,19 @@ save = Save
cancel = Cancel
save-current-color-scheme = Save current color scheme
color-scheme-name = Color scheme name
## About
git-description = Git commit {$hash} on {$date}
## Settings
settings = Settings
### Appearance
appearance = Appearance
theme = Theme
match-desktop = Match desktop
dark = Dark
light = Light
# Menu
view = View
3 changes: 3 additions & 0 deletions res/icons/bundled/list-add-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions res/icons/bundled/search-global-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0c7c1f1

Please sign in to comment.