fix some clippy warnings
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -8,7 +8,7 @@ pub const PINK: Color32 = Color32::from_rgb(0xE4, 0x5A, 0xC9);
|
|||||||
pub const GRAY_SECONDARY: Color32 = Color32::from_rgb(0x8A, 0x8A, 0x8A);
|
pub const GRAY_SECONDARY: Color32 = Color32::from_rgb(0x8A, 0x8A, 0x8A);
|
||||||
const BLACK: Color32 = Color32::from_rgb(0x00, 0x00, 0x00);
|
const BLACK: Color32 = Color32::from_rgb(0x00, 0x00, 0x00);
|
||||||
const RED_700: Color32 = Color32::from_rgb(0xC7, 0x37, 0x5A);
|
const RED_700: Color32 = Color32::from_rgb(0xC7, 0x37, 0x5A);
|
||||||
const ORANGE_700: Color32 = Color32::from_rgb(0xF6, 0xB1, 0x4A);
|
//const ORANGE_700: Color32 = Color32::from_rgb(0xF6, 0xB1, 0x4A);
|
||||||
|
|
||||||
// BACKGROUNDS
|
// BACKGROUNDS
|
||||||
const SEMI_DARKER_BG: Color32 = Color32::from_rgb(0x39, 0x39, 0x39);
|
const SEMI_DARKER_BG: Color32 = Color32::from_rgb(0x39, 0x39, 0x39);
|
||||||
@@ -29,7 +29,7 @@ pub struct ColorTheme {
|
|||||||
pub extreme_bg_color: Color32,
|
pub extreme_bg_color: Color32,
|
||||||
pub text_color: Color32,
|
pub text_color: Color32,
|
||||||
pub err_fg_color: Color32,
|
pub err_fg_color: Color32,
|
||||||
pub warn_fg_color: Color32,
|
//pub warn_fg_color: Color32,
|
||||||
pub hyperlink_color: Color32,
|
pub hyperlink_color: Color32,
|
||||||
pub selection_color: Color32,
|
pub selection_color: Color32,
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ pub fn desktop_dark_color_theme() -> ColorTheme {
|
|||||||
extreme_bg_color: DARK_ISH_BG,
|
extreme_bg_color: DARK_ISH_BG,
|
||||||
text_color: Color32::WHITE,
|
text_color: Color32::WHITE,
|
||||||
err_fg_color: RED_700,
|
err_fg_color: RED_700,
|
||||||
warn_fg_color: ORANGE_700,
|
//warn_fg_color: ORANGE_700,
|
||||||
hyperlink_color: PURPLE,
|
hyperlink_color: PURPLE,
|
||||||
selection_color: PURPLE_ALT,
|
selection_color: PURPLE_ALT,
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ pub fn light_color_theme() -> ColorTheme {
|
|||||||
extreme_bg_color: LIGHTER_GRAY,
|
extreme_bg_color: LIGHTER_GRAY,
|
||||||
text_color: BLACK,
|
text_color: BLACK,
|
||||||
err_fg_color: RED_700,
|
err_fg_color: RED_700,
|
||||||
warn_fg_color: ORANGE_700,
|
//warn_fg_color: ORANGE_700,
|
||||||
hyperlink_color: PURPLE,
|
hyperlink_color: PURPLE,
|
||||||
selection_color: PURPLE_ALT,
|
selection_color: PURPLE_ALT,
|
||||||
|
|
||||||
|
|||||||
@@ -225,11 +225,7 @@ fn tabs_ui(timeline: &mut Timeline, ui: &mut egui::Ui) {
|
|||||||
//ui.add_space(0.5);
|
//ui.add_space(0.5);
|
||||||
ui::hline(ui);
|
ui::hline(ui);
|
||||||
|
|
||||||
let sel = if let Some(sel) = tab_res.selected() {
|
let sel = tab_res.selected().unwrap_or_default();
|
||||||
sel
|
|
||||||
} else {
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
// fun animation
|
// fun animation
|
||||||
timeline.selected_view = sel;
|
timeline.selected_view = sel;
|
||||||
|
|||||||
Reference in New Issue
Block a user