Skip to content
Merged
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
Binary file added scribe/icons/CloseIconBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/CloseIconWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/ConjugateIconBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/ConjugateIconWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/PluralIconBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/PluralIconWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/SettingsIconBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/SettingsIconWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/TranslateIconBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scribe/icons/TranslateIconWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
365 changes: 236 additions & 129 deletions scribe/src/bin/gui.rs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions scribe/src/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl button::StyleSheet for ButtonStyle {
Color::from_rgb8(0x4C, 0xAD, 0xE6)
})),
text_color: if is_dark {
Color::from_rgb8(0xFF, 0xFF, 0xFF) //rgb(189, 189, 189) - White text for dark mode
Color::from_rgb8(0xFF, 0xFF, 0xFF) // rgb(189, 189, 189) - White text for dark mode
} else {
Color::from_rgb8(0x00, 0x00, 0x00) // #000000 - Black text for light mode
},
Expand All @@ -43,17 +43,17 @@ impl button::StyleSheet for ButtonStyle {
}
}
fn hovered(&self, style: &Self::Style) -> ButtonAppearance {
self.active(style) // Same as active - no hover effects
self.active(style) // same as active - no hover effects
}

fn pressed(&self, style: &Self::Style) -> ButtonAppearance {
self.active(style) // Same as active - no press effects
self.active(style) // same as active - no press effects
}

fn disabled(&self, _style: &Self::Style) -> ButtonAppearance {
ButtonAppearance {
background: Some(Background::Color(Color::from_rgb8(0xCC, 0xCC, 0xCC))), // #CCCCCC - Gray for disabled
text_color: Color::from_rgb8(0x66, 0x66, 0x66), // #666666 - Darker gray text
background: Some(Background::Color(Color::from_rgb8(0xCC, 0xCC, 0xCC))), // #CCCCCC - gray for disabled
text_color: Color::from_rgb8(0x66, 0x66, 0x66), // #666666 - darker gray text
border: Border {
color: Color::TRANSPARENT,
width: 0.0,
Expand Down
Loading