Noah Petherbridge
94c1df050b
With Labels and Buttons so far. * Labels are pretty much complete, they wrap a render.Text and have a Compute() method that returns their Width and Height when rendered onto an SDL Surface. * Buttons wrap a Label widget and Compute() its size and takes that into consideration when rendering itself. Buttons render themselves from scratch in a "Windows 95" themed way, with configurable colors, border widths and outline.
12 lines
291 B
Go
12 lines
291 B
Go
package theme
|
|
|
|
import "git.kirsle.net/apps/doodle/render"
|
|
|
|
// Color schemes.
|
|
var (
|
|
ButtonBackgroundColor = render.RGBA(250, 250, 250, 255)
|
|
ButtonHighlightColor = render.RGBA(128, 128, 128, 255)
|
|
ButtonShadowColor = render.RGBA(20, 20, 20, 255)
|
|
ButtonOutlineColor = render.Black
|
|
)
|