Restyle Settings as flat grouped list sections (F9) and scroll it behind the bar (F1)
Servers become rows with a selection mark, addresses as subtitles and a Use/Edit/Remove menu plus an Add server row; the connection is a status row with address and Reconnect/Disconnect rows; Templates and Schedules are chevron rows in a Library group. Material groups are flat surfaceContainer surfaces with primary titleSmall headers (no Cards); Cupertino uses inset-grouped sections on the grouped background, switches for the ntfy choices. The trust warning is a footer, helper copy is shortened, Save workspace is a legible tonal/plain button, and the column starts at the bar's inset (max 720) instead of being centred. The page pads by the top media padding instead of a top SafeArea.
This commit is contained in:
@@ -4,34 +4,38 @@
|
||||
/// from the active Material or Cupertino theme, so text scaling and platform
|
||||
/// defaults are never overridden here.
|
||||
///
|
||||
/// The rhythm follows the web Settings page: one centred column, an 8px gap
|
||||
/// between a section's compact title and its grouped body, and 16px between
|
||||
/// sections. The web's 12px field label and helper lines are secondary type in
|
||||
/// [settingsTextStyle]/[SettingsTextField], not fixed sizes.
|
||||
/// The page is a column of grouped sections. It starts at the top bar's own
|
||||
/// side inset, so on a wide window the groups line up under the title pill
|
||||
/// instead of floating in the middle, and stops growing at a reading width.
|
||||
library;
|
||||
|
||||
/// A comfortable reading width on wide windows; the body is centred inside it.
|
||||
/// The widest the column of groups grows on a wide window.
|
||||
const double settingsContentMaxWidth = 720;
|
||||
|
||||
/// Space between the Settings sections (web `.settings` grid gap).
|
||||
const double settingsSectionGap = 16;
|
||||
/// Space between the Settings groups.
|
||||
const double settingsSectionGap = 24;
|
||||
|
||||
/// Space between a compact section title and its grouped body, and between the
|
||||
/// blocks inside a section (web `.settings-section` grid gap).
|
||||
/// Space between a group's header and its rows, and between stacked blocks
|
||||
/// inside a row.
|
||||
const double settingsTitleGap = 8;
|
||||
|
||||
/// Space between a field label and its field, and between stacked secondary
|
||||
/// lines (web `.settings-field` gap).
|
||||
/// lines.
|
||||
const double settingsFieldGap = 4;
|
||||
|
||||
/// Space between wrapped action buttons.
|
||||
const double settingsControlGap = 8;
|
||||
|
||||
/// Page insets on narrow windows: a little more room above the first title,
|
||||
/// and a clear run-out below the last section (web `.settings` padding).
|
||||
const double settingsPageTopPadding = 20;
|
||||
const double settingsPageSidePadding = 16;
|
||||
/// The page's side inset: the segmented bar's own, so the groups' edge lines
|
||||
/// up with the title pill.
|
||||
const double settingsPageSidePadding = 12;
|
||||
|
||||
/// Space below the top bar (added to its height) and below the last group.
|
||||
const double settingsPageTopPadding = 8;
|
||||
const double settingsPageBottomPadding = 32;
|
||||
|
||||
/// Padding inside a standard Material card / Cupertino inset row.
|
||||
const double settingsCardPadding = 16;
|
||||
/// The inset of a row's text inside a Material group (the [ListTile] default).
|
||||
const double settingsRowInset = 16;
|
||||
|
||||
/// The corner radius of a Material group.
|
||||
const double settingsGroupRadius = 16;
|
||||
|
||||
Reference in New Issue
Block a user