mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
fix px-rem conversion for fonts with spaces in them
This commit is contained in:
@@ -15,8 +15,8 @@ const conversions = [
|
||||
unit1: 'px',
|
||||
unit2: 'rem',
|
||||
unit1Default: 5,
|
||||
formula1to2: '{{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(" ")[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(" ").pop().split("\'"))*4/3)',
|
||||
forcePrecision: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user