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
removed the 2nd font enum and switched to a computed property for the font name
updated the loadfonts thing
removed applyselectedtheme from the sshhandler and the init, moved it to didmovetowindow
when initing the terminalview, restore scrollback but dont start the feedloop
then when returning an existing view, start the readloop
restorescrollback on appear of the view using didmovetowindow
re add the fallback 2nd shellview
made restorescrollback and startfeedloop non async
Please enter a commit message to explain why this merge is necessary,
especially if it merges an updated upstream into a topic branch.
Lines starting with '#' will be ignored, and an empty message aborts
the commit.
added a lot of logic fore foreground color calculation, based on luminance of foreground, background and selectedAnsi colors
fixed fallback when opening the first session
fixed text of unselected tabs being unreadable
added tint var to hostsmanager to get accentcolor
reduced ios version to ios 16
removed the green one idk what to do w it
improved teh lights themselves, they have equal spacing on all sides, including padding
fixed background of the titlebar/trafffic light header
hide the session title in the tab if its active
if not active show it
ANIMATIONS!
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