Skip to content

Commit 1ebee91

Browse files
authored
Update README.md
1 parent 27cc378 commit 1ebee91

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
11
# ColorButton.ahk
22
An 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 := 0x2c2c2c
29+
btn := myGui.AddButton(, "SUPREME")
30+
btn.SetBackColor(0xaa2031)
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+

0 commit comments

Comments
 (0)