mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
fix px-rem conversion for fonts with spaces in them
This commit is contained in:
parent
5546384cd5
commit
925f44efcb
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ const conversions = [
|
||||||
unit1: 'px',
|
unit1: 'px',
|
||||||
unit2: 'rem',
|
unit2: 'rem',
|
||||||
unit1Default: 5,
|
unit1Default: 5,
|
||||||
formula1to2: '{{x}} / (parseFloat(Utils.exec(\'gsettings get org.gnome.desktop.interface font-name\').split(" ")[1].split("\'"))*4/3)',
|
formula1to2: '{{x}} / (parseFloat(Utils.exec(\'gsettings get org.gnome.desktop.interface font-name\').split(" ").pop().split("\'"))*4/3)',
|
||||||
formula2to1: '{{x}} * (parseFloat(Utils.exec(\'gsettings get org.gnome.desktop.interface font-name\').split(" ")[1].split("\'"))*4/3)',
|
formula2to1: '{{x}} * (parseFloat(Utils.exec(\'gsettings get org.gnome.desktop.interface font-name\').split(" ").pop().split("\'"))*4/3)',
|
||||||
forcePrecision: true,
|
forcePrecision: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue