added a get/set SwiftUI.Color to SwiftTerm.Color
overhaul themeeditor's state stuff
updated themeeditor to use a binding
updated themepreview to use a binding
remove the massive subscript - its not needed anymore
moved all swifterm color stuff to its own file
added suiColor as a get/set property on colorcodable
trying to fix the wierd jumpiness when shaking the color in the green bit
trying to fix the wierd drift when increasing the "brightness"
savethemes will clear themes before starting to append
updated updatetheme to savethemes aswell
modified: ShhShell/Host/HostsManager.swift
modified: ShhShell/Themes/ColorCodable.swift
modified: ShhShell/Themes/ThemeCodable.swift
modified: ShhShell/Views/Themes/ThemeEditorView.swift
added a long ass subscript to get/set ansi as swiftui.color from a subscript
added an init from rgb, and init from SwiftUI.Color to colorcodable
added a computed suiColor property to colorcodable
more guardrails to swifterm.Color.init(_ colorCodable)
themecodable colorcodable conform to hashable and equatable
fix light themes having unreadable text
added a luminance property to calculate the brighness of the bg color
if its > 0.5, choose a light theme to get black text
fixed selecting themes - it now actually remembers!!
fix all themes having no names
fix remembering selected themes
added toTheme to return a theme from a themecodable
removed themeNames - its not needed as the names are saved in the ThemeCodable itself
extracted colorcodable and themecodable into their own files
removed all the debug prints
added a bunch of builtin htemes
applytheme takes a theme
added builtin themes enum
added decodeloacltheme func
added builtinthemes array property
selectedtheme is now an actual theme instead of an index
its really annoying it doesnt really work rn
added import theme to import a theme
updated loadthemes
updated themesview to add import buttons and updated the view
fix themesview making a new instance of hostsmanager
added suiColor to get a swiftui color from a swiftterm color
fix uicolor returning black all the time
added loadthemes
added savethemes
theme is now identifieable
theme has a computed property themecodable to make it easier to convert
extended swiftterm.color to have a colorCodabel property
adding themes amanger ui
looking at swiftermapp, it uses string splitting to parse a plist of colours
i couldnt be asked to do this, so i made my own codable types and non codable types to automatically parse the plist lol
anyways might merge the Codable and non codabel types later, but i thik it works now so im leaving it as is rn
moved scrollback restore funcito higher