diff options
| author | Jeff Carr <[email protected]> | 2023-12-20 17:28:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-20 17:28:00 -0600 |
| commit | 48dfdf322b2cf379d8deeff678747907b604637f (patch) | |
| tree | f813fc169ac1eb050c39533cc9612c74c9caebd7 /toolkit/andlabs-direct/old/color.go | |
| parent | dd6d1a639b86ab12a2bf537b8588dd5ae60cdad7 (diff) | |
remove direct code since it probably doesn't work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs-direct/old/color.go')
| -rw-r--r-- | toolkit/andlabs-direct/old/color.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/toolkit/andlabs-direct/old/color.go b/toolkit/andlabs-direct/old/color.go deleted file mode 100644 index cf4a362..0000000 --- a/toolkit/andlabs-direct/old/color.go +++ /dev/null @@ -1,31 +0,0 @@ -package gui - -// -// convert between 'standard' golang Color and andlabs/ui Color -// - -// import "log" -// import "fmt" -import "image/color" - -import "github.com/andlabs/ui" -import _ "github.com/andlabs/ui/winmanifest" - -func libuiColorToGOlangColor(rgba color.RGBA) ui.TableColor { - /* a hack to see if colors work differently on macos or windows - if (rgba.R == 72) { - log.Println("SETTING COLOR TO NIL") - log.Println("SETTING COLOR TO NIL") - log.Println("SETTING COLOR TO NIL") - return ui.TableColor{} - } - */ - return ui.TableColor{float64(rgba.R) / 256, float64(rgba.G) / 256, float64(rgba.B) / 256, float64(rgba.A) / 256} -} - -/* -func golangColorGOlibuiColorTo (ui.TableColor) (rgba color.RGBA) { - color.RGBA{float64(, 100, 200, 100} - return ui.TableColor{float64(rgba.R) / 256, float64(rgba.G) / 256, float64(rgba.B) / 256, float64(rgba.A) / 256} -} -*/ |
