-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update screen shots and readme. Update version to 0.2.3. Ready for publish.
- Loading branch information
1 parent
81511d5
commit 88347e4
Showing
16 changed files
with
213 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "egui-aesthetix" | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
authors = ["Matt Williams <[email protected]>"] | ||
description = "A Uniform and programmatic approach to theming Egui applications" | ||
edition = "2021" | ||
|
@@ -13,10 +13,11 @@ license-file = "LICENSE" | |
|
||
[features] | ||
default = ["standard"] | ||
all_themes = ["standard", "carl", "nord"] | ||
all_themes = ["standard", "carl", "nord", "tokyo_night"] | ||
standard = [] | ||
carl = [] | ||
nord = [] | ||
tokyo_night = [] | ||
|
||
[dependencies] | ||
egui = "0.27" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
//! Carl Dark theme, no light theme currently exists | ||
|
||
mod dark; | ||
|
||
pub use dark::CarlDark; | ||
pub mod dark; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
//! Nord Dark and Light themes | ||
//! | ||
//! The [`egui_aesthetix::themes::NordDark`] and [`egui_aesthetix::themes::NordLight`] | ||
//! structs are good examples on how to implement a theme you want using the | ||
//! [`egui_aesthetix::Aesthetix`] trait. | ||
|
||
mod dark; | ||
mod light; | ||
|
||
pub use dark::NordDark; | ||
pub use light::NordLight; | ||
pub mod dark; | ||
pub mod light; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
//! Tokyo Night theme | ||
//! A port of the popular visual studio code theme: `<https://github.com/enkia/tokyo-night-vscode-theme>` | ||
|
||
use crate::Aesthetix; | ||
|
||
/// Tokyo Night theme. | ||
pub struct TokyoNight; | ||
|
||
impl Aesthetix for TokyoNight { | ||
fn name(&self) -> &str { | ||
"Tokyo Night" | ||
} | ||
|
||
fn primary_accent_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(113, 189, 251) | ||
} | ||
|
||
fn secondary_accent_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(215, 135, 255) | ||
} | ||
|
||
fn bg_primary_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(34, 35, 39) | ||
} | ||
|
||
fn bg_secondary_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(28, 29, 33) | ||
} | ||
|
||
fn bg_triage_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(41, 42, 46) | ||
} | ||
|
||
fn bg_auxiliary_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(31, 32, 36) | ||
} | ||
|
||
fn bg_contrast_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(49, 50, 54) | ||
} | ||
|
||
fn fg_primary_text_color_visuals(&self) -> Option<egui::Color32> { | ||
Some(egui::Color32::from_rgb(196, 200, 213)) | ||
} | ||
|
||
fn fg_success_text_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(80, 250, 123) | ||
} | ||
|
||
fn fg_warn_text_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(255, 215, 64) | ||
} | ||
|
||
fn fg_error_text_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgb(229, 46, 47) | ||
} | ||
|
||
fn dark_mode_visuals(&self) -> bool { | ||
true | ||
} | ||
|
||
fn margin_style(&self) -> f32 { | ||
12.0 | ||
} | ||
|
||
fn button_padding(&self) -> egui::Vec2 { | ||
egui::Vec2 { x: 12.0, y: 10.0 } | ||
} | ||
|
||
fn item_spacing_style(&self) -> f32 { | ||
18.0 | ||
} | ||
|
||
fn scroll_bar_width_style(&self) -> f32 { | ||
14.0 | ||
} | ||
|
||
fn rounding_visuals(&self) -> f32 { | ||
6.0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
//! Tokyo night dark, storm, and light themes, | ||
|
||
pub mod dark; | ||
pub mod storm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
//! Tokyo Night Storm theme. | ||
//! A port of the popular visual studio code theme: `https://github.com/enkia/tokyo-night-vscode-theme/blob/master/themes/tokyo-night-storm-color-theme.json` | ||
|
||
use crate::Aesthetix; | ||
|
||
/// Tokyo Night Storm. | ||
pub struct TokyoNightStorm; | ||
|
||
impl Aesthetix for TokyoNightStorm { | ||
fn name(&self) -> &str { | ||
"Tokyo Night Storm" | ||
} | ||
|
||
fn primary_accent_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(138, 171, 244, 255) | ||
} | ||
|
||
fn secondary_accent_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(97, 175, 239, 255) | ||
} | ||
|
||
fn bg_primary_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(23, 24, 38, 255) | ||
} | ||
|
||
fn bg_secondary_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(31, 31, 51, 255) | ||
} | ||
|
||
fn bg_triage_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(33, 35, 53, 255) | ||
} | ||
|
||
fn bg_auxiliary_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(27, 29, 45, 255) | ||
} | ||
|
||
fn bg_contrast_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(42, 42, 68, 255) | ||
} | ||
|
||
fn fg_primary_text_color_visuals(&self) -> Option<egui::Color32> { | ||
Some(egui::Color32::from_rgba_premultiplied(204, 204, 204, 255)) | ||
} | ||
|
||
fn fg_success_text_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(86, 209, 123, 255) | ||
} | ||
|
||
fn fg_warn_text_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(255, 161, 90, 255) | ||
} | ||
|
||
fn fg_error_text_color_visuals(&self) -> egui::Color32 { | ||
egui::Color32::from_rgba_premultiplied(255, 121, 121, 255) | ||
} | ||
|
||
fn dark_mode_visuals(&self) -> bool { | ||
true | ||
} | ||
|
||
fn margin_style(&self) -> f32 { | ||
12.0 | ||
} | ||
|
||
fn button_padding(&self) -> egui::Vec2 { | ||
egui::Vec2 { x: 12.0, y: 10.0 } | ||
} | ||
|
||
fn item_spacing_style(&self) -> f32 { | ||
18.0 | ||
} | ||
|
||
fn scroll_bar_width_style(&self) -> f32 { | ||
14.0 | ||
} | ||
|
||
fn rounding_visuals(&self) -> f32 { | ||
6.0 | ||
} | ||
} |