mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added fontScale
This commit is contained in:
parent
aeaa441c46
commit
b423e53642
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"defaultVars": {
|
"defaultVars": {
|
||||||
|
"fontScale": "1",
|
||||||
"backgroundBlur": "10px",
|
"backgroundBlur": "10px",
|
||||||
"colorPrimary": "#ff6064",
|
"colorPrimary": "#ff6064",
|
||||||
"app-color": "#ff6064",
|
"app-color": "#ff6064",
|
||||||
|
@ -103,6 +103,32 @@ export default {
|
|||||||
},
|
},
|
||||||
storaged: true
|
storaged: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "style.uiFontScale",
|
||||||
|
group: "aspect",
|
||||||
|
component: "Slider",
|
||||||
|
title: "UI font scale",
|
||||||
|
description: "Change the font scale of the application.",
|
||||||
|
props: {
|
||||||
|
min: 1,
|
||||||
|
max: 1.2,
|
||||||
|
step: 0.01,
|
||||||
|
tooltip: {
|
||||||
|
formatter: (value) => `${value}x`
|
||||||
|
}
|
||||||
|
},
|
||||||
|
defaultValue: () => {
|
||||||
|
return app.cores.style.getValue("fontScale")
|
||||||
|
},
|
||||||
|
onUpdate: (value) => {
|
||||||
|
app.cores.style.modify({
|
||||||
|
"fontScale": value
|
||||||
|
})
|
||||||
|
|
||||||
|
return value
|
||||||
|
},
|
||||||
|
storaged: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "style.uiFont",
|
id: "style.uiFont",
|
||||||
group: "aspect",
|
group: "aspect",
|
||||||
|
@ -9,7 +9,35 @@
|
|||||||
*:before,
|
*:before,
|
||||||
*:after {
|
*:after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
//font-size: calc(1rem * var(--fontScale));
|
font-size: calc(1em * var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: calc(1.4em * var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: calc(1.2em * var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: calc(1em * var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: calc(1em * var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: calc(1em* var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: calc(1em * var(--fontScale));
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: calc(1em * var(--fontScale));
|
||||||
}
|
}
|
||||||
|
|
||||||
#nprogress {
|
#nprogress {
|
||||||
@ -162,7 +190,6 @@ svg {
|
|||||||
/* disable the IOS popup when long-press on a link */
|
/* disable the IOS popup when long-press on a link */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// LAYOUT
|
// LAYOUT
|
||||||
.app_layout {
|
.app_layout {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user