DsAppPalette class

App-level semantic color palette resolved per theme brightness.

디자인 토큰을 Theme.of 와 같이 따라가도록 ThemeExtension 으로 노출한다. 사용처는 Theme.of(context).extension<DsAppPalette>()! 로 받거나, 소비 앱이 정의한 thin wrapper(AppColors.of(context).X)를 통해 접근한다.

BrandATheme.light() / BrandATheme.dark() 에서 자동 등록되므로 별도 extensions: 작업은 필요 없다.

Inheritance

Constructors

DsAppPalette({required Color backgroundPrimary, required Color backgroundSecondary, required LinearGradient backgroundGradient, required Color glassSurface, required Color glassHighSurface, required Color glassBorder, required Color buttonSurface, required Color buttonSurfacePressed, required Color textPrimary, required Color textSecondary, required Color textDisabled, required Color accentBlue, required Color accentPurple, required Color lockedSurface, required Color keyboardBarBackground, required Color terminalBackground, required Color terminalText})
const
DsAppPalette.dark()
Glassmorphism dark palette — slate-900 base, white-on-dark surfaces.
factory
DsAppPalette.light()
Light counterpart — preserves the glass aesthetic on a clean ink surface.
factory

Properties

accentBlue → Color
final
accentPurple → Color
final
backgroundGradient → LinearGradient
final
backgroundPrimary → Color
final
backgroundSecondary → Color
final
buttonSurface → Color
final
buttonSurfacePressed → Color
final
glassBorder → Color
final
glassHighSurface → Color
final
glassSurface → Color
final
hashCode → int
The hash code for this object.
no setterinherited
keyboardBarBackground → Color
final
lockedSurface → Color
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terminalBackground → Color
터미널 영역 배경. 다크: near-OLED black (#020617) — ANSI 색상 대비 극대화. 라이트: near-white (#FAFAFA) — 라이트 모드 일관성 유지.
final
terminalText → Color
터미널 출력 텍스트. 다크: slate-200 (#E2E8F0). 라이트: slate-900 (#0F172A).
final
textDisabled → Color
final
textPrimary → Color
final
textSecondary → Color
final
type → Object
The extension's type.
no setterinherited

Methods

copyWith({Color? backgroundPrimary, Color? backgroundSecondary, LinearGradient? backgroundGradient, Color? glassSurface, Color? glassHighSurface, Color? glassBorder, Color? buttonSurface, Color? buttonSurfacePressed, Color? textPrimary, Color? textSecondary, Color? textDisabled, Color? accentBlue, Color? accentPurple, Color? lockedSurface, Color? keyboardBarBackground, Color? terminalBackground, Color? terminalText}) → DsAppPalette
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant DsAppPalette? other, double t) → DsAppPalette
Linearly interpolate with another ThemeExtension object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

of(BuildContext context) → DsAppPalette
Resolves the palette from context. Falls back to dark when no extension is registered (defensive — should not happen if BrandATheme.light() / .dark() are used).