Icon style (colorized or grayscale), part 1
This commit is contained in:
@@ -724,7 +724,7 @@ func drawAppGlyph(hdc uintptr, r rect, a appWin) {
|
||||
isz := px(16) // the small taskbar icon size
|
||||
if a.icon != 0 {
|
||||
cx, cy := center(r)
|
||||
pDrawIconEx.Call(hdc, uintptr(cx-isz/2), uintptr(cy-isz/2), a.icon, uintptr(isz), uintptr(isz), 0, 0, diNormal)
|
||||
pDrawIconEx.Call(hdc, uintptr(cx-isz/2), uintptr(cy-isz/2), styledIcon(a.icon), uintptr(isz), uintptr(isz), 0, 0, diNormal)
|
||||
} else if rs := []rune(a.title); len(rs) > 0 {
|
||||
pSetBkMode.Call(hdc, transparent)
|
||||
pSetTextColor.Call(hdc, rgb(245, 245, 245))
|
||||
@@ -1218,6 +1218,7 @@ func main() {
|
||||
loadOrient()
|
||||
loadPinned()
|
||||
loadOrderKeys()
|
||||
loadIconMode()
|
||||
|
||||
hdc, _, _ := pGetDC.Call(0)
|
||||
dpi, _, _ := pGetDeviceCaps.Call(hdc, logPixelsX)
|
||||
|
||||
Reference in New Issue
Block a user