Combine internal packages into one internal package

This commit is contained in:
2024-09-10 18:29:04 -04:00
parent 6f2a31cd60
commit 039e0da646
4 changed files with 8 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ import "git.tebibyte.media/tomo/tomo/input"
import "git.tebibyte.media/tomo/tomo/event"
import "git.tebibyte.media/tomo/tomo/canvas"
import "git.tebibyte.media/tomo/objects/layouts"
import icolor "git.tebibyte.media/tomo/objects/internal/color"
import "git.tebibyte.media/tomo/objects/internal"
var _ tomo.Object = new(Swatch)
@@ -117,7 +117,7 @@ func (this *Swatch) Choose () {
updateHexInput := func () {
nrgba := color.NRGBAModel.Convert(colorPicker.Value()).(color.NRGBA)
hexInput.SetValue(icolor.FormatNRGBA(nrgba))
hexInput.SetValue(internal.FormatNRGBA(nrgba))
}
updateHexInput()
commit := func () {
@@ -130,7 +130,7 @@ func (this *Swatch) Choose () {
})
hexInput.OnConfirm(commit)
hexInput.OnValueChange(func () {
nrgba := icolor.ParseNRGBA(hexInput.Value())
nrgba := internal.ParseNRGBA(hexInput.Value())
this.userSetValue(nrgba)
colorPicker.SetValue(nrgba)
})