Skip to content

Commit

Permalink
#4, #48
Browse files Browse the repository at this point in the history
Fix #4
Make icons have a proper background for #48
  • Loading branch information
rcmaehl committed Jun 27, 2021
1 parent feb8027 commit 7d60b16
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Global $sVersion = "2.2.2.0"
#include <File.au3>
#include <Misc.au3>
#include <String.au3>
#include <GDIPlus.au3>
#include <WinAPIGDI.au3>
#include <WinAPISys.au3>
#include <WinAPISysWin.au3>
#include <EditConstants.au3>
Expand Down Expand Up @@ -102,17 +104,27 @@ Func Main()
GUICtrlCreateLabel("", 0, 0, 100, 600)
GUICtrlSetBkColor(-1, _HighContrast(0xE6E6E6))

_GDIPlus_Startup()
If @Compiled Then
GUICtrlCreateIcon(@ScriptFullPath, 201, 12, 100, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, @ScriptFullPath, 201, 32, 32)
GUICtrlCreateIcon(@ScriptFullPath, 202, 56, 100, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, @ScriptFullPath, 202, 32, 32)
GUICtrlCreateIcon(@ScriptFullPath, 203, 12, 144, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, @ScriptFullPath, 203, 32, 32)
GUICtrlCreateIcon(@ScriptFullPath, 204, 56, 144, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, @ScriptFullPath, 204, 32, 32)
Else
GUICtrlCreateIcon(".\includes\Git.ico", -1, 12, 100, 32, 32)
GUICtrlCreateIcon(".\includes\PP.ico", -1, 56, 100, 32, 32)
GUICtrlCreateIcon(".\includes\dis.ico", -1, 12, 144, 32, 32)
GUICtrlCreateIcon(".\includes\Web.ico", -1, 56, 144, 32, 32)
GUICtrlCreateIcon("", -1, 12, 100, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, ".\includes\Git.ico", -1, 32, 32)
GUICtrlCreateIcon("", -1, 56, 100, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, ".\includes\PP.ico", -1, 32, 32)
GUICtrlCreateIcon("", -1, 12, 144, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, ".\includes\dis.ico", -1, 32, 32)
GUICtrlCreateIcon("", -1, 56, 144, 32, 32)
_SetBkIcon(-1, 0xE6E6E6, ".\includes\Web.ico", -1, 32, 32)
EndIf
_GDIPlus_Shutdown()

$hBannerText = GUICtrlCreateLabel("", 5, 540, 90, 20, $SS_CENTER+$SS_CENTERIMAGE)
GUICtrlSetFont(-1, 8.5, $FW_NORMAL, $GUI_FONTUNDER)
Expand Down
Binary file modified includes/Dis.ico
Binary file not shown.
Binary file modified includes/PP.ico
Binary file not shown.
Binary file modified includes/Web.ico
Binary file not shown.

0 comments on commit 7d60b16

Please sign in to comment.