From 5119f631f36a11b01c95f9a482ea7abfca0b6dad Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 7 Feb 2023 19:59:46 +0100 Subject: [PATCH] Enhancement: VS Code theme support for the dashboards #505 --- .../components/Header/Tab.tsx | 18 ++++++++++++--- .../components/Layout/NavigationBar.tsx | 22 ++++++++++++++++--- .../components/Layout/NavigationItem.tsx | 19 +++++++++++++--- .../components/Navigation.tsx | 2 +- 4 files changed, 51 insertions(+), 10 deletions(-) diff --git a/src/dashboardWebView/components/Header/Tab.tsx b/src/dashboardWebView/components/Header/Tab.tsx index 2a192484..8edf1a99 100644 --- a/src/dashboardWebView/components/Header/Tab.tsx +++ b/src/dashboardWebView/components/Header/Tab.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { useLocation } from 'react-router-dom'; +import useThemeColors from '../../hooks/useThemeColors'; import { NavigationType } from '../../models'; export interface ITabProps { @@ -13,13 +14,24 @@ export const Tab: React.FunctionComponent = ({ children }: React.PropsWithChildren) => { const location = useLocation(); + const { getColors } = useThemeColors(); return (