~starkingdoms/starkingdoms

ref: 794916c572daff5b5038ea6488e8bdd133c31ffa starkingdoms/crates/client/src/ui/widgets.rs -rw-r--r-- 354 bytes
794916c5core Merge branch 'core/rewrite-it-all-again-lmao' into 'master' 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use egui::RichText;

pub fn progress_bar(progress: f32) -> egui::ProgressBar {
    egui::ProgressBar::new(progress)
        .fill(super::colors::BLUE)
        .corner_radius(0)
}

pub trait RichTextExt {
    fn stk_weak(self) -> Self;
}
impl RichTextExt for RichText {
    fn stk_weak(self) -> Self {
        self.color(super::colors::OVERLAY_2)
    }
}