Commit Graph

18 Commits

Author SHA1 Message Date
neon443
7e0a02fad3 redid logic on the shellview selection
fixed the colours being unreadable sometimes on title bar of the shellview
luminance ratio func
forcedismissdisconnectedalert is now in handler
2025-09-03 20:39:55 +01:00
neon443
e2cb313ddc cleanup, add spacers to ansi picker 2025-07-09 11:52:47 +01:00
neon443
3fbccd05e2 if edited theme is selected, make selectedtheme = the newly edited theme
fix color selection by converting color spaces
version bump
2025-07-09 11:43:18 +01:00
neon443
ab65900c92 cleanup 2025-07-08 19:56:28 +01:00
neon443
19d3c495d5 added reloading for edited themes on the fly
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
2025-07-08 19:48:37 +01:00
neon443
e5e0a47f4f updated themeeditor to work with teh background color
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
2025-07-08 14:27:13 +01:00
neon443
c9c78adf7c added a functional theme editor
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
2025-07-07 17:21:51 +01:00
neon443
8a0e009c7a added a themeeditor (really bugged rn)
added a convenience init to make a swiftterm color from a swiftui color
added a frame to make the terminalcontroller the optimalsize
merged extensions
2025-07-07 14:45:16 +01:00
neon443
b9327f993e add a border to ansipicker, and fix the corner radius
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
2025-07-03 18:19:13 +01:00
neon443
4ca3bc035f Awdjfghkahdsgjf;h
id and name were swapped loll
switch back to icloud defaults for hostsmanager
update xcode* themes to camel case
2025-06-29 11:22:29 +01:00
neon443
a4d245caec !!!!!!!!!!
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
2025-06-29 10:43:47 +01:00
neon443
834fb266e9 theme picker ui is pretty now
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
2025-06-29 09:59:53 +01:00
neon443
c343066fb5 make decodeTheme cleaner, still works yayyy 2025-06-27 18:27:10 +01:00
neon443
338957e986 theme loading works!! before i tried decoding the entire array when it expected one theme lol 2025-06-27 18:25:16 +01:00
neon443
d33b7d4eaf added downloadtheme funciton to download and import a theme from an iterm2colorschemes.com link
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
2025-06-27 18:01:27 +01:00
neon443
56289f0f6d added themes to hostsmanager
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
2025-06-27 10:59:53 +01:00
neon443
f14492d3fe added applyTheme() function
added SwiftTerm.Color.uiColor extension to get a UIColor from SwiftTerm.Color
rename SSHTerminalView to SSHTerminalDelegate
2025-06-27 10:38:03 +01:00
neon443
73282fa65d adding theme support!!
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
2025-06-27 10:29:53 +01:00