Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 2a2c00d

Browse files
committed
dark mode
1 parent fff4bb0 commit 2a2c00d

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

src/components/NavBar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export function NavBar(navBarProps: NavBarProps) {
9797
}}
9898
MenuListProps={{
9999
"aria-labelledby": "long-button",
100+
style: {
101+
backgroundColor: StyleVariables.BACKGROUND_PRIMARY,
102+
color: StyleVariables.TEXT_NORMAL,
103+
},
100104
}}
101105
>
102106
<MenuItem onClick={handleSettingsClick} disableRipple>

src/components/portals/DataviewFiltersPortal.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ const DataviewFiltersPortal = (props: DataviewFiltersProps) => {
9393
size="small"
9494
key={`Select-existedColumnSelector-${selectorProps.index}`}
9595
onChange={onchangeExistedColumnHandler(selectorProps.index)}
96+
style={{
97+
backgroundColor: StyleVariables.BACKGROUND_PRIMARY,
98+
color: StyleVariables.TEXT_NORMAL,
99+
}}
100+
MenuProps={{
101+
PaperProps: {
102+
sx: {
103+
backgroundColor: StyleVariables.BACKGROUND_PRIMARY,
104+
color: StyleVariables.TEXT_NORMAL,
105+
},
106+
},
107+
}}
96108
>
97109
{possibleColumns.map((key) => {
98110
return (
@@ -119,6 +131,18 @@ const DataviewFiltersPortal = (props: DataviewFiltersProps) => {
119131
value={selectorProps.currentOp}
120132
size="small"
121133
onChange={onChangeOperatorHandler(selectorProps.index)}
134+
style={{
135+
backgroundColor: StyleVariables.BACKGROUND_PRIMARY,
136+
color: StyleVariables.TEXT_NORMAL,
137+
}}
138+
MenuProps={{
139+
PaperProps: {
140+
sx: {
141+
backgroundColor: StyleVariables.BACKGROUND_PRIMARY,
142+
color: StyleVariables.TEXT_NORMAL,
143+
},
144+
},
145+
}}
122146
>
123147
{Object.entries(OperatorFilter).map(([key, value]) => {
124148
return (

src/components/reducers/DataviewFilters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function DataviewFilters(props: DataviewFiltersProps) {
1313
);
1414
const columns = tableState.columns((state) => state.columns);
1515
const dataActions = tableState.data((state) => state.actions);
16-
const enableFilterHandler = (event: React.MouseEvent<HTMLButtonElement>) => {
16+
const enableFilterHandler = () => {
1717
// Invert the filter state
1818
const alteredFilterState = { ...filters };
1919
alteredFilterState.enabled = !alteredFilterState.enabled;

0 commit comments

Comments
 (0)