Misc · Terms and notices: licenses, consent and a cookie banner

misc::LicenseViewer lists what a product ships with each license beside
the chosen one's text. misc::ConsentDialog asks for a box before Accept
and answers each way out once, accept or decline. misc::CookieBanner
takes Accept all, Reject all, or a switch per kind through Choose, which
turns into Save choices on its focus. ChangeLog Viewer points to
data_display::Changelog.
This commit is contained in:
ZacharyZhang-NY committed 2026-09-28 03:36:03 -04:00
1 parent 320ab4ae3a
commit 2837c802b5
10 files changed
+744 -5

No files matched your search

+6
View File
@@ -11,6 +11,10 @@ pub struct MiscSizes {
pub small_face: Rems,
/// A flashcard's least height.
pub card: Rems,
/// A license viewer's list, and the least width of the text beside it.
pub licenses: Rems,
/// How tall a license's text grows before it scrolls.
pub reading: Rems,
}
impl Theme {
@@ -19,6 +23,8 @@ impl Theme {
face: px_to_rems(112.0),
small_face: px_to_rems(32.0),
card: px_to_rems(176.0),
licenses: px_to_rems(240.0),
reading: px_to_rems(320.0),
}
}
}