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
@@ -30,6 +30,8 @@ fn main() -> iced::Result {
|
||||
ferese_config::config_path()
|
||||
};
|
||||
|
||||
ferese_config::locale::load(config.as_deref());
|
||||
|
||||
if !args.is_empty() && !preview && args != ["--foreground"] {
|
||||
eprintln!("Usage: ferese-lock [--preview | --foreground]");
|
||||
std::process::exit(2);
|
||||
@@ -430,7 +432,7 @@ impl Locker {
|
||||
let margin = if size.width < 640. { 24. } else { 36. };
|
||||
let top = (size.height * 0.09).max(24.);
|
||||
let a = &self.appearance;
|
||||
let mut input = widget::text_input("Password", self.password.as_str())
|
||||
let mut input = widget::text_input(ferese_config::tr!("Password"), self.password.as_str())
|
||||
.password()
|
||||
.padding([4, 10])
|
||||
.size(14)
|
||||
@@ -494,9 +496,9 @@ impl Locker {
|
||||
input,
|
||||
self.label(
|
||||
if self.caps_lock {
|
||||
"Caps Lock is on"
|
||||
ferese_config::tr!("Caps Lock is on")
|
||||
} else {
|
||||
self.status
|
||||
ferese_config::locale::text(self.status)
|
||||
},
|
||||
12
|
||||
)
|
||||
@@ -542,9 +544,12 @@ impl Locker {
|
||||
container(identity).center_x(Length::Fill),
|
||||
widget::Space::new().height(Length::Fill),
|
||||
row![
|
||||
row![ferese_symbol(), self.label("Ferese", 13)]
|
||||
.spacing(5)
|
||||
.align_y(iced::Alignment::Center),
|
||||
row![
|
||||
ferese_symbol(),
|
||||
self.label(ferese_config::tr!("Ferese"), 13)
|
||||
]
|
||||
.spacing(5)
|
||||
.align_y(iced::Alignment::Center),
|
||||
widget::Space::new().width(Length::Fill),
|
||||
self.label(
|
||||
if self.preview {
|
||||
|
||||
Reference in new issue
Block a user