mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:38:26 +02:00
Custom font sizes and better zoom
This commit is contained in:
@@ -41,22 +41,10 @@ export class Color {
|
||||
return this.theme === 'dark' ? this._darken(mod) : this._lighten(mod);
|
||||
}
|
||||
|
||||
lowerTo(value: number): Color {
|
||||
return this.theme === 'dark'
|
||||
? this._darken(1)._lighten(value)
|
||||
: this._lighten(1)._darken(1 - value);
|
||||
}
|
||||
|
||||
lift(mod: number): Color {
|
||||
return this.theme === 'dark' ? this._lighten(mod) : this._darken(mod);
|
||||
}
|
||||
|
||||
liftTo(value: number): Color {
|
||||
return this.theme === 'dark'
|
||||
? this._lighten(1)._darken(1 - value)
|
||||
: this._darken(1)._lighten(value);
|
||||
}
|
||||
|
||||
translucify(mod: number): Color {
|
||||
const c = this.clone();
|
||||
c.alpha = c.alpha - c.alpha * mod;
|
||||
|
||||
Reference in New Issue
Block a user