File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 11# ColorButton.ahk
22An extended method for changing a button's background color.
3+
4+ ## Features
5+ - Easily change a button's background color.
6+ - Compatible with [ AutoHotkey v2.1-alpha.9] ( https://github.com/AutoHotkey/AutoHotkeyDocs/tree/alpha ) or later.
7+ - Learn more about the ahk v2.1-alpha: [ Click here] ( https://github.com/AutoHotkey/AutoHotkeyDocs/tree/alpha )
8+
9+ ### On Windows 11
10+ ![ colorButton_win11_demo] ( https://github.com/nperovic/ColorButton.ahk/assets/122501303/567a8145-c7c3-4800-9210-613b3bdc2f71 )
11+
12+
13+ ### On Windows 10
14+ ![ colorButton_win10_demo] ( https://github.com/nperovic/ColorButton.ahk/assets/122501303/63c20602-b45d-4030-93a9-0a258c70acb4 )
15+
16+ ## Usage
17+ 1 . Download the [ ColorButton.ahk] ( ColorButton.ahk ) file.
18+ 2 . Include the [ ColorButton.ahk] ( ColorButton.ahk ) file in your script.
19+ 3 . Implement dark theme by using the ` SetBackColor ` method.
20+
21+ ## Example
22+ ``` py
23+ # requires AutoHotkey v2.1-alpha.9
24+ # include <ColorButton>
25+
26+ myGui := Gui()
27+ myGui.SetFont(" cWhite s24" , " Segoe UI" )
28+ myGui.BackColor := 0x 2c2c2c
29+ btn := myGui.AddButton(, " SUPREME" )
30+ btn.SetBackColor(0x aa2031 )
31+ myGui.Show(" w300 h300" )
32+ ```
33+
34+ ## License
35+ This project is licensed under the MIT License - see the [ LICENSE.md] ( LICENSE.md ) file for details.
36+
You can’t perform that action at this time.
0 commit comments