feat(settings): add grouped configuration hub, languages and tray controls
This commit is contained in:
1 parent
6f34fd080f
commit
cc3b6f903f
90 files changed
+3625
-408
No files matched your search
@@ -7,6 +7,15 @@ use jiff::Zoned;
|
||||
|
||||
#[must_use]
|
||||
pub fn format_bar_time(now: &Zoned) -> String {
|
||||
if ferese_config::locale::resolved() == ferese_config::locale::Language::Chinese {
|
||||
return format!(
|
||||
"{}月{}日, {:02}:{:02}",
|
||||
now.month(),
|
||||
now.day(),
|
||||
now.hour(),
|
||||
now.minute()
|
||||
);
|
||||
}
|
||||
let months = [
|
||||
"jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sept", "oct", "nov", "dec",
|
||||
];
|
||||
@@ -93,9 +102,15 @@ fn grid_with_density<'a, M: Clone + 'a>(
|
||||
let muted = palette.muted.scale_alpha(opacity);
|
||||
let [previous, today_button, next] = navigation;
|
||||
let header = row![
|
||||
crate::text(format!("{} {year}", months[(month - 1) as usize]), font)
|
||||
.size(if compact { 13 } else { 15 })
|
||||
.width(Length::Fill),
|
||||
crate::text(
|
||||
format!(
|
||||
"{} {year}",
|
||||
ferese_config::locale::text(months[(month - 1) as usize])
|
||||
),
|
||||
font
|
||||
)
|
||||
.size(if compact { 13 } else { 15 })
|
||||
.width(Length::Fill),
|
||||
previous,
|
||||
today_button,
|
||||
next,
|
||||
|
||||
Reference in new issue
Block a user