mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 21:18:12 +08:00
Update UI widget designs to improve color consistency and add a narrow height mode
This commit is contained in:
@@ -942,6 +942,8 @@ export class ColorInput extends WidgetProps {
|
||||
|
||||
disabled!: boolean;
|
||||
|
||||
narrow!: boolean;
|
||||
|
||||
menuDirection!: MenuDirection | undefined;
|
||||
|
||||
// allowTransparency!: boolean; // TODO: Implement
|
||||
@@ -1039,6 +1041,8 @@ export class DropdownInput extends WidgetProps {
|
||||
|
||||
disabled!: boolean;
|
||||
|
||||
narrow!: boolean;
|
||||
|
||||
@Transform(({ value }: { value: string }) => value || undefined)
|
||||
tooltip!: string | undefined;
|
||||
|
||||
@@ -1127,6 +1131,9 @@ export class NumberInput extends WidgetProps {
|
||||
|
||||
disabled!: boolean;
|
||||
|
||||
// Narrow
|
||||
narrow!: boolean;
|
||||
|
||||
// Value
|
||||
|
||||
value!: number | undefined;
|
||||
@@ -1204,6 +1211,8 @@ export class RadioInput extends WidgetProps {
|
||||
|
||||
disabled!: boolean;
|
||||
|
||||
narrow!: boolean;
|
||||
|
||||
selectedIndex!: number | undefined;
|
||||
|
||||
minWidth!: number;
|
||||
@@ -1261,6 +1270,8 @@ export class TextButton extends WidgetProps {
|
||||
|
||||
disabled!: boolean;
|
||||
|
||||
narrow!: boolean;
|
||||
|
||||
@Transform(({ value }: { value: string }) => value || undefined)
|
||||
tooltip!: string | undefined;
|
||||
|
||||
@@ -1302,6 +1313,8 @@ export class TextInput extends WidgetProps {
|
||||
|
||||
disabled!: boolean;
|
||||
|
||||
narrow!: boolean;
|
||||
|
||||
minWidth!: number;
|
||||
|
||||
maxWidth!: number;
|
||||
@@ -1317,6 +1330,8 @@ export class TextLabel extends WidgetProps {
|
||||
// Props
|
||||
disabled!: boolean;
|
||||
|
||||
narrow!: boolean;
|
||||
|
||||
bold!: boolean;
|
||||
|
||||
italic!: boolean;
|
||||
|
||||
Reference in New Issue
Block a user