mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-23 14:40:58 -04:00
wallpapers and ui cleanup
This commit is contained in:
parent
77c68aa45f
commit
6bd60207d8
32 changed files with 17947 additions and 150 deletions
|
@ -111,22 +111,27 @@ class ScaleConfig extends ThemeExtension<ScaleConfig> {
|
|||
required this.useVisualIndicators,
|
||||
required this.preferBorders,
|
||||
required this.borderRadiusScale,
|
||||
});
|
||||
required double wallpaperAlpha,
|
||||
}) : _wallpaperAlpha = wallpaperAlpha;
|
||||
|
||||
final bool useVisualIndicators;
|
||||
final bool preferBorders;
|
||||
final double borderRadiusScale;
|
||||
final double _wallpaperAlpha;
|
||||
|
||||
int get wallpaperAlpha => _wallpaperAlpha.toInt();
|
||||
|
||||
@override
|
||||
ScaleConfig copyWith({
|
||||
bool? useVisualIndicators,
|
||||
bool? preferBorders,
|
||||
double? borderRadiusScale,
|
||||
}) =>
|
||||
ScaleConfig copyWith(
|
||||
{bool? useVisualIndicators,
|
||||
bool? preferBorders,
|
||||
double? borderRadiusScale,
|
||||
double? wallpaperAlpha}) =>
|
||||
ScaleConfig(
|
||||
useVisualIndicators: useVisualIndicators ?? this.useVisualIndicators,
|
||||
preferBorders: preferBorders ?? this.preferBorders,
|
||||
borderRadiusScale: borderRadiusScale ?? this.borderRadiusScale,
|
||||
wallpaperAlpha: wallpaperAlpha ?? this._wallpaperAlpha,
|
||||
);
|
||||
|
||||
@override
|
||||
|
@ -139,6 +144,8 @@ class ScaleConfig extends ThemeExtension<ScaleConfig> {
|
|||
t < .5 ? useVisualIndicators : other.useVisualIndicators,
|
||||
preferBorders: t < .5 ? preferBorders : other.preferBorders,
|
||||
borderRadiusScale:
|
||||
lerpDouble(borderRadiusScale, other.borderRadiusScale, t) ?? 1);
|
||||
lerpDouble(borderRadiusScale, other.borderRadiusScale, t) ?? 1,
|
||||
wallpaperAlpha:
|
||||
lerpDouble(_wallpaperAlpha, other._wallpaperAlpha, t) ?? 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue