-
-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #708 from ZeroDot1/patch-1
Create the new theme sniff_oled.toml
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 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
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,4 +1,5 @@ | ||
pub mod dracula; | ||
pub mod gruvbox; | ||
pub mod nord; | ||
pub mod oled; | ||
pub mod solarized; |
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,34 @@ | ||
#![allow(clippy::unreadable_literal)] | ||
|
||
//! Themes optimized for OLED displays and visually impaired users | ||
//! <https://github.com/GyulyVGC/sniffnet/pull/708> | ||
use iced::color; | ||
use once_cell::sync::Lazy; | ||
|
||
use crate::gui::styles::types::palette::Palette; | ||
use crate::gui::styles::types::palette_extension::PaletteExtension; | ||
|
||
pub static OLED_DARK_PALETTE: Lazy<Palette> = Lazy::new(|| Palette { | ||
primary: color!(0x000000), | ||
secondary: color!(0x934900), | ||
outgoing: color!(0xF0F0F0), | ||
starred: color!(0xFFFF00), | ||
text_headers: color!(0xE0E0E0), | ||
text_body: color!(0xfcfaf0), | ||
}); | ||
|
||
pub static OLED_DARK_PALETTE_EXTENSION: Lazy<PaletteExtension> = | ||
Lazy::new(|| OLED_DARK_PALETTE.generate_palette_extension()); | ||
|
||
pub static OLED_LIGHT_PALETTE: Lazy<Palette> = Lazy::new(|| Palette { | ||
primary: color!(0xFFFFFF), | ||
secondary: color!(0x6CB6FF), | ||
outgoing: color!(0x0F0F0F), | ||
starred: color!(0x0000FF), | ||
text_headers: color!(0x1F1F1F), | ||
text_body: color!(0x03050F), | ||
}); | ||
|
||
pub static OLED_LIGHT_PALETTE_EXTENSION: Lazy<PaletteExtension> = | ||
Lazy::new(|| OLED_LIGHT_PALETTE.generate_palette_extension()); |
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