@@ -27,7 +27,10 @@ if (A_IsCompiled) {
27
27
MonitorGet(1 , & Left , & Top , & Right , & Bottom )
28
28
DPIScale := A_ScreenDPI / 96
29
29
DPIScaled (n ) {
30
- return Round (n* DPIScale )
30
+ return Round (n * DPIScale )
31
+ }
32
+ DPIScaledFont (n ) {
33
+ return Round (n * (DPIScale ** 0.5 ))
31
34
}
32
35
Screen_Height := Bottom - Top
33
36
Screen_Width := Right - Left
@@ -73,7 +76,7 @@ if A_IsCompiled {
73
76
mygui.Add(" Picture" , debugBorder " x" DPIScaled(10 ) " y" DPIScaled(10 ) " h" DPIScaled(30 ) " w-1 Section" , " app_title.png" )
74
77
}
75
78
76
- mygui.SetFont(" s" DPIScaled (8 ) " Q5 bold" , " Comic Sans MS" )
79
+ mygui.SetFont(" s" DPIScaledFont (8 ) " Q5 bold" , " Comic Sans MS" )
77
80
swapbtn := mygui.Add(" Button" , " xs y+5 h" DPIScaled(22 ) " w" DPIScaled(90 ), 'SWAP(s)')
78
81
swapbtn.OnEvent(" Click" , swap)
79
82
@@ -82,6 +85,10 @@ autoCenterSwitch.OnEvent("Click", autoPosSwitch_cb)
82
85
backgroundSwitch := mygui.Add(" Checkbox" , debugBorder " x+10 yp hp " runbackgroud_default_check, 'Runs in background ')
83
86
backgroundSwitch.OnEvent(" Click" , backgroundSwitch_cb)
84
87
88
+ mygui.SetFont(" s" DPIScaledFont(10 ) " Q5 norm" , " Comic Sans MS" )
89
+ mygui.Add(" Text" , " Section xs y+0 h" DPIScaled(12 ), 'Current:')
90
+ mygui.Add(" Text" , " xs y+0 hp wp" , 'EXIF:')
91
+
85
92
txt_indicator := mygui.Add(" Text" , debugBorder " x+10 ys hp w" DPIScaled(360 ), 'NULL')
86
93
txt_indicator.SetFont(" cTeal bold" )
87
94
@@ -93,7 +100,7 @@ pic := mygui.Add("Picture", "x10 y+0 w" DPIScaled(500) " h" DPIScaled(400) " 0xE
93
100
pic.OnEvent(" Click" , pic_on_click)
94
101
pic.OnEvent(" DoubleClick" , pic_on_click)
95
102
96
- mygui.SetFont(" s" DPIScaled (8 ) " Q5 Norm" , " Comic Sans MS" )
103
+ mygui.SetFont(" s" DPIScaledFont (8 ) " Q5 Norm" , " Comic Sans MS" )
97
104
info := Array()
98
105
info.Push(mygui.Add(" Text" , debugBorder " x" DPIScaled(420 ) " y" DPIScaled(12 ) " h0" , " v" . version))
99
106
info.Push(mygui.Add(" Link" , debugBorder " xp y+0 hp" , 'bilibili: <a href=" https://space.bilibili.com/895523" >TecNico</ a>'))
0 commit comments