Skip to content

Commit

Permalink
Start on #73, #103, #104, #105, and #106
Browse files Browse the repository at this point in the history
Allow adjustment of font settings
GUI modifications to come
  • Loading branch information
rcmaehl committed Feb 24, 2021
1 parent 89c744f commit cbd6159
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Includes/_GetLanguage.au3
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ Func _LoadLanguage($sPath = @OSLang)
Global $_sLang_Translator = IniRead($sPath, "File", "Translator", "Robert Maehl")
#EndRegion

#Region ; GUI Values
Global $_sLang_GUIFontSize = IniRead($sPath, "Font", "Size" , "8.5")
Global $_sLang_GUIFontWeight = IniRead($sPath, "Font", "Weight" , "400")
Global $_sLang_GUIFontName = IniRead($sPath, "Font", "Name" , "" )

#Region ; Global Tips Usage
Global $_sLang_Example = IniRead($sPath, "Global Tips", "Example", "Example")
Global $_sLang_Usage = IniRead($sPath, "Global Tips", "Usage" , "Usage" )
Expand Down
5 changes: 5 additions & 0 deletions Lang/Template.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Version=
Language=
Translator=

[Font]
Size=8.5
Weight=400
Name=""

[Global Tips]
Example=Example
Usage=Usage
Expand Down
3 changes: 3 additions & 0 deletions NotCPUCores.au3
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Func Main()

Local $hGUI = GUICreate("NotCPUCores", 640, 480, -1, -1, BitOr($WS_MINIMIZEBOX, $WS_CAPTION, $WS_SYSMENU))
GUISetOnEvent($GUI_EVENT_CLOSE, "OnInterrupt")
GUISetFont($_sLang_GUIFontSize, $_sLang_GUIFontWeight, 0, $_sLang_GUIFontName)

#Region ; Dummy Controls
Local $hClear = GUICtrlCreateDummy()
Expand Down Expand Up @@ -443,6 +444,7 @@ Func Main()

$hQuickTabs = GUICreate("", 360, 300, 280, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI)
GUISetAccelerators($aHotkeys)
GUISetFont($_sLang_GUIFontSize, $_sLang_GUIFontWeight, 0, $_sLang_GUIFontName)

$hTabs = GUICtrlCreateTab(0, 0, 360, 300)

Expand Down Expand Up @@ -496,6 +498,7 @@ Func Main()

#Region ; Sleep Timer GUI
$hTimerGUI = GUICreate($_sLang_SleepSet, 240, 120, -1, -1, $WS_POPUP + $WS_CAPTION, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST)
GUISetFont($_sLang_GUIFontSize, $_sLang_GUIFontWeight, 0, $_sLang_GUIFontName)

GUICtrlCreateLabel($_sLang_SleepText, 10, 5, 220, 45)
GUICtrlCreateLabel($_sLang_NewSleep & ":", 10, 60, 110, 20)
Expand Down

0 comments on commit cbd6159

Please sign in to comment.