getting terminal colors working

This commit is contained in:
2026-02-05 13:46:47 -05:00
parent 9fa52d71ca
commit e239b33042
45 changed files with 1718 additions and 2055 deletions

View File

@@ -1,4 +1,5 @@
import { createSignal } from "solid-js";
import { useRenderer } from "@opentui/solid";
import { Layout } from "./components/Layout";
import { Navigation } from "./components/Navigation";
import { TabNavigation } from "./components/TabNavigation";
@@ -32,31 +33,31 @@ export function App() {
// Centralized keyboard handler for all tab navigation and shortcuts
useAppKeyboard({
get activeTab() {
return activeTab()
return activeTab();
},
onTabChange: setActiveTab,
inputFocused: inputFocused(),
navigationEnabled: layerDepth() === 0,
layerDepth,
onLayerChange: (newDepth) => {
setLayerDepth(newDepth)
setLayerDepth(newDepth);
},
onAction: (action) => {
if (action === "escape") {
if (layerDepth() > 0) {
setLayerDepth(0)
setInputFocused(false)
setLayerDepth(0);
setInputFocused(false);
} else {
setShowAuthPanel(false)
setInputFocused(false)
setShowAuthPanel(false);
setInputFocused(false);
}
}
if (action === "enter" && layerDepth() === 0) {
setLayerDepth(1)
setLayerDepth(1);
}
},
})
});
const renderContent = () => {
const tab = activeTab();