Skip to content

Commit e0c0dcb

Browse files
authored
chore: information relating Validity support into Help (#179)
* chore: information relating Validity support into Help * chore: update CHANGELOG.md
1 parent 903f147 commit e0c0dcb

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Unreleased
9+
10+
### Changed
11+
12+
- Improved Help theming and added open-fprintd link
13+
- Updated application dependencies
14+
815
## [1.2.1](https://github.com/cosmic-utils/enroll/releases/tag/v1.2.1) - 2026-07-15
916

1017
### Fixed

i18n/en/cosmic_utils_enroll.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ clear-device-confirm = Are you sure you want to clear fingerprints for ALL known
2424
2525
about-licenses = License information
2626
help-fprintd = If you have any issues please first check you have fprintd correctly installed. You can find more information from their website:
27+
help-validity = For some hardware, like Validity scanners for example, you need to currently use open-fprintd instead.
2728
help-pam = Also to be able to utilize fingerprint effectively PAM must be configured to use fprintd module for authentication. You can find examples here:
2829
2930
settings-ui = User Interface

src/app/view.rs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const FPRINT_ICON: &[u8] = include_bytes!("../../resources/icons/hicolor/scalabl
2121
const STATUS_TEXT_SIZE: u16 = 16;
2222
const LICENSES: &str = "https://cosmic-utils.org/enroll/licenses";
2323
const FREEDESKTOP_FPRINT: &str = "https://fprint.freedesktop.org/";
24+
const OPEN_FPRINTD: &str = "https://github.com/uunicorn/open-fprintd";
2425
const WIKI_ARCH: &str = "https://wiki.archlinux.org/title/Fprint#Login_configuration";
2526
pub(crate) const MAIN_PADDING: u16 = 20;
2627
pub(crate) const MAIN_SPACING: u16 = 20;
@@ -71,22 +72,30 @@ impl AppModel {
7172
pub fn help(&self) -> Element<'_, Message> {
7273
let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
7374
let help = Column::new();
74-
let title_fprintd = text::title3("Fprintd");
7575
let help_section_fprintd = text(fl!("help-fprintd"));
7676
let fprintd_url = button::link(FREEDESKTOP_FPRINT)
7777
.on_press(Message::LaunchUrl(FREEDESKTOP_FPRINT.into()))
7878
.padding(0);
79-
let title_pam = text::title3("PAM");
79+
let validity_scanner_help_text = text(fl!("help-validity"));
80+
let open_fprintd_url = button::link(OPEN_FPRINTD)
81+
.on_press(Message::LaunchUrl(OPEN_FPRINTD.into()))
82+
.padding(0);
83+
let fprintd_section = cosmic::widget::settings::section()
84+
.title("Fprintd")
85+
.add(help_section_fprintd)
86+
.add(fprintd_url)
87+
.add(validity_scanner_help_text)
88+
.add(open_fprintd_url);
8089
let help_section_pam = text(fl!("help-pam"));
8190
let wiki_arch_url = button::link(WIKI_ARCH)
8291
.on_press(Message::LaunchUrl(WIKI_ARCH.into()))
8392
.padding(0);
84-
help.push(title_fprintd)
85-
.push(help_section_fprintd)
86-
.push(fprintd_url)
87-
.push(title_pam)
88-
.push(help_section_pam)
89-
.push(wiki_arch_url)
93+
let pam_section = cosmic::widget::settings::section()
94+
.title("PAM")
95+
.add(help_section_pam)
96+
.add(wiki_arch_url);
97+
help.push(fprintd_section)
98+
.push(pam_section)
9099
.align_x(Alignment::Center)
91100
.spacing(space_xxs)
92101
.into()

0 commit comments

Comments
 (0)