-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix balance in gui, add font support, bump version number
- Loading branch information
Showing
9 changed files
with
120 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ authors = [ | |
"Nikita Chashchinskii <[email protected]>" | ||
] | ||
edition = "2021" | ||
version = "0.8.8" | ||
version = "0.8.9" | ||
|
||
[workspace.dependencies.bip300301] | ||
git = "https://github.com/Ash-L2L/bip300301.git" | ||
|
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,10 @@ | ||
# Thunder | ||
|
||
## Install | ||
|
||
Check out the repo with `git clone`, and then | ||
|
||
``` | ||
git submodule update --init | ||
cargo build | ||
``` |
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,39 @@ | ||
//! Load fonts for egui | ||
use std::sync::LazyLock; | ||
|
||
use eframe::egui::{FontData, FontDefinitions, FontFamily}; | ||
|
||
static FIRA_MONO_NERD_REGULAR: &[u8] = include_path::include_path_bytes!( | ||
"../../res/nerd-fonts/patched-fonts/FiraMono/Regular/FiraMonoNerdFont-Regular.otf" | ||
); | ||
|
||
static NOTO_SANS_MONO_NERD_REGULAR: &[u8] = include_path::include_path_bytes!( | ||
"../../res/nerd-fonts/patched-fonts/Noto/Sans-Mono/NotoSansMNerdFont-Regular.ttf" | ||
); | ||
|
||
pub static FONT_DEFINITIONS: LazyLock<FontDefinitions> = LazyLock::new(|| { | ||
let mut fonts = FontDefinitions::default(); | ||
// Install fonts | ||
fonts.font_data.insert( | ||
"Fira Mono Nerd Regular".to_owned(), | ||
FontData::from_static(FIRA_MONO_NERD_REGULAR), | ||
); | ||
fonts.font_data.insert( | ||
"Noto Sans Mono Nerd Regular".to_owned(), | ||
FontData::from_static(NOTO_SANS_MONO_NERD_REGULAR), | ||
); | ||
// Set Fira Mono Nerd Regular as first monospace font | ||
fonts | ||
.families | ||
.get_mut(&FontFamily::Monospace) | ||
.unwrap() | ||
.insert(0, "Fira Mono Nerd Regular".to_owned()); | ||
// Set Noto Sans Mono Nerd Regular as second monospace font | ||
fonts | ||
.families | ||
.get_mut(&FontFamily::Monospace) | ||
.unwrap() | ||
.insert(1, "Noto Sans Mono Nerd Regular".to_owned()); | ||
fonts | ||
}); |
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
Binary file added
BIN
+4.44 MB
res/nerd-fonts/patched-fonts/FiraMono/Regular/FiraMonoNerdFont-Regular.otf
Binary file not shown.
Binary file added
BIN
+2.33 MB
res/nerd-fonts/patched-fonts/Noto/Sans-Mono/NotoSansMNerdFont-Regular.ttf
Binary file not shown.