From 6057d83eaeef89230f92d58252d770e1cc42de44 Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 6 Apr 2023 11:16:45 -0600 Subject: [PATCH] Preseving contrast with light menu instead of always-inverted menu. --- app/src/components/Common.js | 5 ++--- app/src/components/Nav.js | 7 ++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/components/Common.js b/app/src/components/Common.js index 755ee423..d7b89253 100644 --- a/app/src/components/Common.js +++ b/app/src/components/Common.js @@ -1,5 +1,5 @@ import React, {useContext, useEffect, useState} from "react"; -import {Card, Container, IconGroup, Input, Modal, Pagination, Icon as SIcon} from 'semantic-ui-react'; +import {Card, Container, IconGroup, Input, Modal, Pagination} from 'semantic-ui-react'; import {Link, NavLink, useNavigate} from "react-router-dom"; import Message from "semantic-ui-react/dist/commonjs/collections/Message"; import {useDirectories, useDownloads, useHotspot, useSettings, useThrottle} from "../hooks/customHooks"; @@ -779,8 +779,7 @@ export function DarkModeToggle() { iconName = 'sun'; } - return ; const name = NAME || wrolpiIcon; const topNavText = wrol_mode ? <>{name}  : name; + const {i} = React.useContext(ThemeContext); const homeLink = {topNavText} @@ -69,7 +70,7 @@ export function NavBar() { return <> - + {homeLink} {icons} @@ -82,7 +83,7 @@ export function NavBar() { - + {homeLink} {links.map(i => )}