Implement UI zooming
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
|
||||
// Base variables
|
||||
|
||||
real uiScale: 1.0 /* TODO: Implement correctly, do not change for now */
|
||||
real fontScale: uiScale
|
||||
|
||||
Behavior on uiScale { HNumberAnimation {} }
|
||||
Behavior on fontScale { HNumberAnimation {} }
|
||||
real uiScale: 1.0
|
||||
|
||||
int minimumSupportedWidth: 240 * uiScale
|
||||
int minimumSupportedHeight: 120 * uiScale
|
||||
@@ -17,19 +13,19 @@ int minimumSupportedHeightPlusSpacing: minimumSupportedHeight + spacing * 2
|
||||
|
||||
int baseElementsHeight: 36 * uiScale
|
||||
int spacing: 12 * uiScale
|
||||
int radius: 5
|
||||
int radius: 5 * uiScale
|
||||
int animationDuration: 100
|
||||
real loadingElementsOpacity: 0.8
|
||||
real disabledElementsOpacity: 0.3
|
||||
|
||||
|
||||
fontSize:
|
||||
int smaller: 13 * fontScale
|
||||
int small: 13 * fontScale
|
||||
int normal: 16 * fontScale
|
||||
int big: 22 * fontScale
|
||||
int bigger: 32 * fontScale
|
||||
int biggest: 48 * fontScale
|
||||
int smaller: 13 * uiScale
|
||||
int small: 13 * uiScale
|
||||
int normal: 16 * uiScale
|
||||
int big: 22 * uiScale
|
||||
int bigger: 32 * uiScale
|
||||
int biggest: 48 * uiScale
|
||||
|
||||
fontFamily:
|
||||
string sans: "Roboto"
|
||||
@@ -94,6 +90,9 @@ icons:
|
||||
color colorize: hsluv(0, 0, colors.intensity * 90)
|
||||
color disabledColorize: "white"
|
||||
|
||||
int smallDimension: 16 * uiScale
|
||||
int dimension: 22 * uiScale
|
||||
|
||||
|
||||
// Generic UI controls
|
||||
|
||||
@@ -318,6 +317,9 @@ chat:
|
||||
color background: "transparent"
|
||||
|
||||
message:
|
||||
int avatarSize: 58 * uiScale
|
||||
int collapsedAvatarSize: 28 * uiScale
|
||||
|
||||
int radius: theme.radius
|
||||
color background: colors.strongBackground
|
||||
color ownBackground: hsluv(
|
||||
@@ -408,7 +410,7 @@ mediaPlayer:
|
||||
color background: hsluv(0, 0, 0, 0.5)
|
||||
|
||||
controls:
|
||||
int iconHeight: 20
|
||||
int iconSize: icons.dimension
|
||||
int volumeSliderWidth: 100
|
||||
int speedSliderWidth: 100
|
||||
color background: hsluv(
|
||||
|
Reference in New Issue
Block a user