2023-02-02 22:57:18 -07:00
|
|
|
package theme
|
|
|
|
|
|
|
|
import "image/color"
|
|
|
|
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
|
|
|
|
2023-02-14 16:11:11 -07:00
|
|
|
// var backgroundPattern = artist.Gradient {
|
|
|
|
// First: uhex(0xFF0000FF),
|
|
|
|
// Second: uhex(0x00FF00FF),
|
|
|
|
// }
|
2023-02-02 22:57:18 -07:00
|
|
|
var accentPattern = artist.NewUniform(hex(0x408090FF))
|
|
|
|
var backgroundPattern = artist.NewUniform(color.Gray16 { 0xAAAA })
|
|
|
|
var foregroundPattern = artist.NewUniform(color.Gray16 { 0x0000 })
|
|
|
|
var weakForegroundPattern = artist.NewUniform(color.Gray16 { 0x4444 })
|
|
|
|
var strokePattern = artist.NewUniform(color.Gray16 { 0x0000 })
|
|
|
|
|
|
|
|
var sunkenPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x3b534eFF)),
|
|
|
|
artist.NewUniform(hex(0x97a09cFF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x97a09cFF)) })
|
2023-02-09 14:15:02 -07:00
|
|
|
var focusedSunkenPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
2023-02-10 23:27:28 -07:00
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
2023-02-09 14:15:02 -07:00
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x97a09cFF)) })
|
2023-02-02 22:57:18 -07:00
|
|
|
|
|
|
|
var texturedSunkenPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x3b534eFF)),
|
|
|
|
artist.NewUniform(hex(0x97a09cFF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
artist.Stroke { Pattern: artist.Noisy {
|
|
|
|
Low: artist.NewUniform(hex(0x97a09cFF)),
|
|
|
|
High: artist.NewUniform(hex(0x6e8079FF)),
|
|
|
|
}})
|
2023-02-10 23:27:28 -07:00
|
|
|
var focusedTexturedSunkenPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: artist.Noisy {
|
|
|
|
Low: artist.NewUniform(hex(0x97a09cFF)),
|
|
|
|
High: artist.NewUniform(hex(0x6e8079FF)),
|
|
|
|
}})
|
2023-02-02 22:57:18 -07:00
|
|
|
|
|
|
|
var raisedPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xDBDBDBFF)),
|
|
|
|
artist.NewUniform(hex(0x383C3AFF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0xAAAAAAFF)) })
|
|
|
|
|
|
|
|
var selectedRaisedPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xDBDBDBFF)),
|
|
|
|
artist.NewUniform(hex(0x383C3AFF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0xAAAAAAFF)) })
|
|
|
|
|
|
|
|
var deadPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x97a09cFF)) })
|
|
|
|
|
|
|
|
var buttonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xCCD5D2FF)),
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x8D9894FF)) })
|
|
|
|
var selectedButtonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xCCD5D2FF)),
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x8D9894FF)) })
|
|
|
|
var pressedButtonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
artist.NewUniform(hex(0x8D9894FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x8D9894FF)) })
|
|
|
|
var pressedSelectedButtonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
artist.NewUniform(hex(0x8D9894FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x8D9894FF)) })
|
|
|
|
var disabledButtonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: weakForegroundPattern },
|
|
|
|
artist.Stroke { Pattern: backgroundPattern })
|
|
|
|
|
2023-02-09 09:38:01 -07:00
|
|
|
var darkButtonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xaebdb9FF)),
|
|
|
|
artist.NewUniform(hex(0x3b4947FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x6b7a75FF)) })
|
|
|
|
var pressedDarkButtonPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x3b4947FF)),
|
|
|
|
artist.NewUniform(hex(0x6b7a75FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x6b7a75FF)) })
|
|
|
|
|
2023-02-02 22:57:18 -07:00
|
|
|
var inputPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x89925AFF)),
|
|
|
|
artist.NewUniform(hex(0xD2CB9AFF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0xD2CB9AFF)) })
|
|
|
|
var selectedInputPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0xD2CB9AFF)) })
|
|
|
|
var disabledInputPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: weakForegroundPattern },
|
|
|
|
artist.Stroke { Pattern: backgroundPattern })
|
|
|
|
|
|
|
|
var listPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
uhex(0x383C3AFF),
|
|
|
|
uhex(0x999C99FF),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: uhex(0x999C99FF) })
|
|
|
|
|
|
|
|
var focusedListPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: uhex(0x999C99FF) })
|
|
|
|
|
|
|
|
var listEntryPattern = artist.Padded {
|
|
|
|
Stroke: uhex(0x383C3AFF),
|
|
|
|
Fill: uhex(0x999C99FF),
|
|
|
|
Sides: []int { 0, 0, 0, 1 },
|
|
|
|
}
|
|
|
|
|
|
|
|
var onListEntryPattern = artist.Padded {
|
|
|
|
Stroke: uhex(0x383C3AFF),
|
|
|
|
Fill: uhex(0x6e8079FF),
|
|
|
|
Sides: []int { 0, 0, 0, 1 },
|
|
|
|
}
|
|
|
|
|
|
|
|
var focusedListEntryPattern = artist.Padded {
|
|
|
|
Stroke: accentPattern,
|
|
|
|
Fill: uhex(0x999C99FF),
|
|
|
|
Sides: []int { 0, 1, 0, 1 },
|
|
|
|
}
|
|
|
|
|
|
|
|
var focusedOnListEntryPattern = artist.Padded {
|
|
|
|
Stroke: accentPattern,
|
|
|
|
Fill: uhex(0x6e8079FF),
|
|
|
|
Sides: []int { 0, 1, 0, 1 },
|
|
|
|
}
|
|
|
|
|
|
|
|
var scrollGutterPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0x3b534eFF)),
|
|
|
|
artist.NewUniform(hex(0x6e8079FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x6e8079FF)) })
|
2023-02-14 15:21:05 -07:00
|
|
|
var thinScrollGutterPattern = artist.Padded {
|
|
|
|
Fill: scrollGutterPattern,
|
|
|
|
Stroke: sunkenPattern,
|
|
|
|
Sides: []int{ 6, 6, 6, 6 },
|
|
|
|
}
|
2023-02-02 22:57:18 -07:00
|
|
|
var disabledScrollGutterPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: weakForegroundPattern },
|
|
|
|
artist.Stroke { Pattern: backgroundPattern })
|
2023-02-14 15:21:05 -07:00
|
|
|
var disabledThinScrollGutterPattern = artist.Padded {
|
|
|
|
Fill: disabledScrollGutterPattern,
|
|
|
|
Stroke: disabledButtonPattern,
|
|
|
|
Sides: []int{ 6, 6, 6, 6},
|
|
|
|
}
|
2023-02-02 22:57:18 -07:00
|
|
|
var scrollBarPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xCCD5D2FF)),
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x8D9894FF)) })
|
|
|
|
var selectedScrollBarPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xCCD5D2FF)),
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x8D9894FF)) })
|
|
|
|
var pressedScrollBarPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xCCD5D2FF)),
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Weight: 1, Pattern: artist.NewUniform(hex(0x8D9894FF)) },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x7f8c89FF)) })
|
|
|
|
var pressedSelectedScrollBarPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: strokePattern },
|
|
|
|
artist.Stroke {
|
|
|
|
Weight: 1,
|
|
|
|
Pattern: artist.Beveled {
|
|
|
|
artist.NewUniform(hex(0xCCD5D2FF)),
|
|
|
|
artist.NewUniform(hex(0x4B5B59FF)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
artist.Stroke { Weight: 1, Pattern: accentPattern },
|
|
|
|
artist.Stroke { Pattern: artist.NewUniform(hex(0x7f8c89FF)) })
|
|
|
|
var disabledScrollBarPattern = artist.NewMultiBordered (
|
|
|
|
artist.Stroke { Weight: 1, Pattern: weakForegroundPattern },
|
|
|
|
artist.Stroke { Pattern: backgroundPattern })
|