Skip to content

Commit

Permalink
added resources/..
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ehrhart authored and Matthew Ehrhart committed Apr 19, 2022
1 parent 7f0b59f commit ed5ac99
Show file tree
Hide file tree
Showing 32 changed files with 60 additions and 4 deletions.
Binary file added resources/checked.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 resources/chronometer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/close.svg
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 resources/delete-2.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 resources/delete-3.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 resources/delete.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 resources/duplicate1.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 resources/duplicate2.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 resources/file_system.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 resources/filter.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 resources/filter1.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 resources/folder-2.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 resources/folder.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 resources/ico.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 resources/icon.ico
Binary file not shown.
Binary file added resources/icon2.ico
Binary file not shown.
1 change: 1 addition & 0 deletions resources/minus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/pause-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/pin-off-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/pin-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/play-circle.svg
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 resources/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/refresh-ccw.svg
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 resources/root-directory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/skip-forward.svg
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 resources/slack.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 resources/unchecked.png
1 change: 1 addition & 0 deletions resources/volume-2.svg
1 change: 1 addition & 0 deletions resources/volume-x.svg
2 changes: 2 additions & 0 deletions src/app/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ impl epi::App for Application {
.frame(frame_style_1)
.min_width(113.)
.show(ctx, |ui| {

self::Application::set_theme(self, ui, ctx);
ui.add_space(70.);
self::Application::left_menu(self, ui, ctx);
});
Expand Down
51 changes: 47 additions & 4 deletions src/app/left_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,56 @@ use super::controller::Application;
use crate::{enums::enums, finder::finder};

impl Application {
pub fn set_theme(&mut self, ui: &mut egui::Ui, ctx: &egui::Context) {

ctx.set_visuals(egui::Visuals::light());
//let mut ctx = egui::Context::default();
let mut style: egui::Style = (*ctx.style()).clone();
// if style.visuals.widgets.noninteractive.bg_fill == Color32::from_gray(30) {
style.visuals.widgets.noninteractive.bg_fill = Color32::WHITE;
style.visuals.widgets.noninteractive.fg_stroke = egui::Stroke {
width: 1.0,
color: Color32::BLACK,
};

style.visuals.widgets.active.bg_fill = Color32::WHITE;
style.visuals.widgets.active.fg_stroke = egui::Stroke {
width: 1.0,
color: Color32::BLACK,
};

style.visuals.widgets.inactive.bg_fill = Color32::WHITE;
style.visuals.widgets.inactive.fg_stroke = egui::Stroke {
width: 1.0,
color: Color32::BLACK,
};
style.visuals.widgets.inactive.bg_stroke = egui::Stroke {
width: 1.0,
color: Color32::from_rgb(70, 130, 180),
};

style.visuals.widgets.hovered.bg_fill = Color32::from_rgb(70, 180, 120);
style.visuals.widgets.hovered.fg_stroke = egui::Stroke {
width: 1.0,
color: Color32::from_rgb(70, 130, 180),
};

style.visuals.widgets.open.bg_fill = Color32::from_rgb(70, 130, 180);
style.visuals.widgets.open.fg_stroke = egui::Stroke {
width: 1.0,
color: Color32::from_rgb(70, 130, 180),
};
ctx.set_style(style);
}
pub fn add_label(&mut self, ui: &mut egui::Ui, text: String) {
ui.add(egui::Label::new(
egui::RichText::new(text).color(egui::Color32::from_rgb(244, 244, 244)),
egui::RichText::new(text).color(egui::Color32::from_rgb(255, 255, 255)),
));
}

pub fn add_label_with_hover(&mut self, ui: &mut egui::Ui, text: String, hover_text: String) {
ui.add(egui::Label::new(
egui::RichText::new(text).color(egui::Color32::from_rgb(244, 244, 244)),
egui::RichText::new(text).color(egui::Color32::from_rgb(255, 255, 255)),
))
.on_hover_ui(|ui| {
ui.label(hover_text);
Expand All @@ -27,7 +68,7 @@ impl Application {

audio_name
}

pub fn left_menu(&mut self, ui: &mut egui::Ui, ctx: &egui::Context) {
//let color32_blue = Color32::from_rgb(123, 167, 204);
let color32_blue_2 = Color32::from_rgb(70, 130, 180);
Expand Down Expand Up @@ -216,7 +257,9 @@ impl Application {
let radius = 0.43 * rect.height();

ui.scope(|ui| {
ui.visuals_mut().override_text_color = Some(egui::Color32::from_white_alpha(100));
//ui.visuals_mut().override_text_color = Some(egui::Color32::from_white_alpha(100));
ui.add_space(3.);
ui.visuals_mut().override_text_color = Some(egui::Color32::from_rgb(255, 255, 255));
ui.label(text);
});

Expand Down

0 comments on commit ed5ac99

Please sign in to comment.