Format cleanup

This commit is contained in:
Oliver 'kfsone' Smith 2021-02-24 13:23:26 -08:00
parent 113982db71
commit 69cba1203d
5 changed files with 5 additions and 7 deletions

View file

@ -14,7 +14,7 @@ type comboboxColoring struct {
}
// comboboxColors lists the styling for each supported state.
var comboboxColors = map[ControlState]comboboxColoring {
var comboboxColors = map[ControlState]comboboxColoring{
Normal: {ComboboxDefaultBorderColor, ComboboxDefaultInsideColor, ComboboxDefaultListTextColor, ComboboxDefaultTextColor},
Clicked: {ComboboxDefaultBorderColor, ComboboxDefaultInsideColor, ComboboxDefaultListTextColor, ComboboxDefaultTextColor},
Focused: {ComboboxHoverBorderColor, ComboboxHoverInsideColor, ComboboxHoverListTextColor, ComboboxHoverTextColor},

View file

@ -9,7 +9,6 @@ func Label(bounds rl.Rectangle, text string) {
// LabelEx - Label element extended, configurable colors
func LabelEx(bounds rl.Rectangle, text string, textColor, border, inner rl.Color) {
// Update control
textHeight := GetStyle32(GlobalTextFontsize)
textWidth := rl.MeasureText(text, textHeight)

View file

@ -416,4 +416,3 @@ func GetStyle32(property Property) int32 {
func GetStyleColor(property Property) rl.Color {
return rl.GetColor(int32(style[property]))
}