How to draw Windows 7 taskbar like Shaded Buttons

后端 未结 4 682
野性不改
野性不改 2021-01-16 05:47

Windows 7 taskbar buttons are drawn on a shaded background. The color shade somehow reacts on where the mouse is over the button.

I\'d like to use such buttons in my

4条回答
  •  半阙折子戏
    2021-01-16 06:46

    I believe they're implemented as shader programs on the GPU. Just a simple program which takes the cursor position, and computes a brightness for each pixel based on the distance from that position.

提交回复
热议问题