-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.ts
More file actions
67 lines (58 loc) · 1.93 KB
/
Copy pathstyles.ts
File metadata and controls
67 lines (58 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
namespace microcode {
/**
* Shared visual styles for microcode screens and modal controls.
*/
export namespace AppStyles {
/**
* Standard square size for compact modal items.
*/
export const ModalItemSize = 18
/**
* Standard column count for compact modal pickers.
*/
export const ModalColumnCount = 3
/**
* Standard content margin for compact modal panels.
*/
export const ModalMargin = 4
/**
* Standard gap between a modal title and its content grid.
*/
export const ModalTitleGap = 4
/**
* Standard gap between controls in compact modal pickers.
*/
export const ModalControlGap = 1
/**
* Default modal panel color for editor-owned modal panels.
*/
export const DefaultModalPanelColor = 12
/**
* Default title color for app-owned modal panels.
*/
export const ModalTitleColor = 1
/**
* Content margin used by the numeric entry modal.
*/
export const NumericModalMargin = 5
/**
* Button style for compact modal controls.
*/
// Intentionally omits `font`: the render path resolves the default font
// at use time via `ui.locFont()`. Setting it here would capture
// `bitmaps.font8` at module-init time, before the app assigns a
// per-language font, and would never pick up a localized default.
export const ModalButton = ui.buttonStyle(
ui.UiButtonStyles.LightShadowedWhite,
)
/**
* Creates the shared icon-button style used by screen controls.
*/
export function iconButton(): ui.UiButtonStyle {
return ui.buttonStyle(
ui.UiButtonStyles.Transparent,
ui.UiButtonStyles.FocusLabel,
)
}
}
}