Commit Graph

241 Commits

Author SHA1 Message Date
neon443
a3003a6e90 added a themepreview to themeditor
added background to themeeditor
extracted the raw themepreview to thempreview and made the previous view themebutton
fixed padding above your themes header
2025-07-09 12:12:34 +01:00
neon443
e2cb313ddc cleanup, add spacers to ansi picker 2025-07-09 11:52:47 +01:00
neon443
2e74426941 Merge remote-tracking branch 'refs/remotes/origin/main' 2025-07-09 11:52:06 +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
Nihaal Sharma
32aa07a098 Update ci_post_clone.sh 2025-07-09 11:29:04 +01:00
neon443
edefce114c fixed label hidden 2025-07-08 20:35:10 +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
bcdece3bee themeeditor can now save
add an updatetheme
remove the frame on the terminalcontroller, it made incorrect sizes
2025-07-08 12:57:23 +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
74b81877a9 moved .toolbar to contentview to fix the 4x plus button 2025-07-06 19:44:25 +01:00
neon443
bc24edd13c added a quick font manager/selector
added selectfont, savefont
updated loadfonts
fix swipeaction tint color for hosts
2025-07-06 19:40:52 +01:00
neon443
4a98e3e4c9 axed some of them bc i cba to find italic, bold, bolditalc ones
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
2025-07-06 19:13:19 +01:00
neon443
0c31a7d7c5 got loading some custom fonts, only ones with one "name" inside the family 2025-07-06 16:24:02 +01:00
neon443
0d53ccc3bc added a buncha fonts
added a fonts enum
added a loadFonts, currently just prints all fonts available
2025-07-06 16:16:30 +01:00
neon443
2b3610f827 vbump 2025-07-05 13:59:16 +01:00
neon443
ad777119c2 added a lil shadow opposite to the color scheme to help tell if u selected white on white for example
added bottom padding to the thememanager, remove the top padding
2025-07-05 13:59:05 +01:00
neon443
8852117b30 fix disconnect if u leave it idle for a min
dont restore scrollback on init
2025-07-05 13:43:31 +01:00
neon443
9a5580bff1 acctually fixed the post-minimize input, restoring scrollback, losing first bit of text issues:
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
2025-07-05 13:06:44 +01:00
neon443
12baf81d18 vbump 2025-07-04 18:31:37 +01:00
neon443
6eb5845c4f asdflkj;aso;djfghaoeihj
FINALLY
ok finally fix the issues with keybaird input and restoring sessions
2025-07-04 18:30:45 +01:00
neon443
76ed946781 FINALLYYYYY
fix wierd keyboard bug
2025-07-04 18:10:29 +01:00
neon443
24309725d4 remove 2nd restore 2025-07-04 18:02:19 +01:00
neon443
edd78c89bc update frameworks curl link cos catbox is down 2025-07-04 17:55:08 +01:00
neon443
ffd5fc1221 Merge branch 'ervert'
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.
2025-07-04 17:40:39 +01:00
neon443
c9c1d152ca improve restore of scrollback 2025-07-04 17:38:15 +01:00
neon443
7c0332427c Merge branch 'ervert'
# Conflicts:
#	ShhShell/Views/Terminal/SSHTerminalDelegate.swift
2025-07-04 17:08:26 +01:00
neon443
6ce6f5c823 ok its fixed, but now the scrollback restore at startup causes a biit of text to be missed 2025-07-04 17:01:52 +01:00
neon443
a495419348 fix calling of scrollback restoration, its not done on init, but only if existing is being returned 2025-07-04 16:51:02 +01:00
neon443
a85022e351 ok im fucking pissed off
the keyboard input issue is back
2025-07-04 16:28:08 +01:00
neon443
186c04ce7f ok actually fix the fallback now 2025-07-04 16:01:34 +01:00
neon443
27e75285fe re add the fallback thing,its what adds it to container lol 2025-07-04 15:56:16 +01:00
neon443
2aa3d4cdfa Merge remote-tracking branch 'refs/remotes/origin/main'
#Conflicts:
#	ShhShell/Views/Terminal/ShellTabView.swift
2025-07-04 15:43:48 +01:00
neon443
7c85d9d2cc remove fallback, remove border 2025-07-04 15:43:31 +01:00
neon443
1f04f6527f remove fallback, remove border 2025-07-04 15:43:11 +01:00
neon443
83eb9b8b62 vbump 2025-07-04 15:42:06 +01:00
neon443
f68b08d45c fixed race condition opening the terminal, as restoring scrollback would restore content already there 🤦 2025-07-04 15:41:54 +01:00
neon443
b5f8c4e716 made the titlebar have the host label and hide tab bar when only one tab
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
2025-07-04 14:51:54 +01:00
neon443
70f11579c5 use the accent color as teh tab header color
change font sizes
2025-07-04 12:44:31 +01:00
neon443
a611154c3d simplified the red&yellow traffic lights
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!
2025-07-04 12:41:37 +01:00
neon443
143e785ca6 ok cl fuck this shit its so long 2025-07-04 12:07:58 +01:00
neon443
82af0ac57d ok green is done, now need to finish enabled green 2025-07-04 11:44:13 +01:00
neon443
ecfd997487 added traffliclights to make the traffic lights perfect, red yellow done
green wip
clean up on the terminal view: add background and reorg the fiel and add traffic lights
add bg to all the terminal related stuff
2025-07-04 10:47:27 +01:00
neon443
a9df89eae2 added mac-like traffic lights to the top of tabshellview 2025-07-04 09:29:21 +01:00
neon443
89669b4596 add minimize button 2025-07-04 08:29:05 +01:00
neon443
9dcdd5de41 fixed wierd border issues 2025-07-03 19:32:27 +01:00
neon443
d5a45d78c4 fix the wierd scaling when tapping an ansi color 2025-07-03 19:11:06 +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