theme: use semibold headlines and 24pt menu rows
This commit is contained in:
@@ -22,12 +22,12 @@ use crate::system::{AccessibilityPreferences, PartialPalette, SourceKind, System
|
||||
|
||||
/// Default control radius for macOS controls.
|
||||
const CONTROL_RADIUS_PTS: f32 = 6.0;
|
||||
/// The rounded-bezel text field's intrinsic height at regular size.
|
||||
/// The text field's intrinsic height at regular size, square or rounded bezel alike.
|
||||
const INPUT_HEIGHT_PTS: f32 = 24.0;
|
||||
/// AppKit's regular push button, measured via `NSButton::fittingSize`.
|
||||
const CONTROL_HEIGHT_PTS: f32 = 24.0;
|
||||
/// The standard `NSMenu` row height.
|
||||
const MENU_ITEM_HEIGHT_PTS: f32 = 20.0;
|
||||
/// The `NSMenu` row height; 20 before the macOS 26 redesign.
|
||||
const MENU_ITEM_HEIGHT_PTS: f32 = 24.0;
|
||||
/// `NSSwitch`, measured via `fittingSize`.
|
||||
const SWITCH_TRACK_HEIGHT_PTS: f32 = 24.0;
|
||||
const SWITCH_TRACK_WIDTH_PTS: f32 = 54.0;
|
||||
|
||||
Reference in New Issue
Block a user