Skip to content

Commit b866f41

Browse files
committed
[gephi-lite] fix dark theme
1 parent 6739172 commit b866f41

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

packages/gephi-lite/src/styles/_data-table.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ $table-editable-columns-cell-hover-bg: color-mix(
4242
display: flex;
4343
font-weight: $font-weight-base;
4444
position: relative;
45+
color: var(--gl-body-color);
4546

4647
border-width: 0;
4748
border-right-width: var(--bs-border-width);

packages/gephi-lite/src/styles/gl/_base.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,10 @@ blockquote {
101101
var(--gl-body-color) $gl-sys-proportion-component-hover-color-mix
102102
);
103103
}
104+
105+
a:not(.gl-btn) {
106+
color: var(--gl-body-color) !important;
107+
&:hover {
108+
color: rgba(var(--gl-body-color-rgb), 0.9) !important;
109+
}
110+
}

packages/gephi-lite/src/styles/gl/_variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ $colors-dark: (
201201
"component-border-color": $gl-sys-color-dark-component-border,
202202
// Table
203203
"table-border-color": $gl-sys-color-dark-bg-highest,
204-
"table-column-cell-editable-bg": $gl-sys-color-dark-bg-highest,
205-
"table-column-cell-non-editable-bg": $gl-sys-color-bg-highest,
204+
"table-column-cell-editable-bg": $gl-sys-color-dark-bg-higher,
205+
"table-column-cell-non-editable-bg": $gl-sys-color-dark-bg-higher,
206206
"table-column-header-editable-bg": $gl-sys-color-dark-bg-higher,
207207
"table-column-header-non-editable-bg": $gl-sys-color-dark-bg-high,
208208
//Shadows

packages/gephi-lite/src/views/graphPage/GraphRendering.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ const InteractionsController: FC = () => {
6565
const { isFullScreen, toggle } = useFullScreen();
6666
const sigma = useSigmaAtom();
6767

68-
const btnClassName = "gl-btn gl-btn-icon gl-btn-outline bg-white";
68+
const btnClassName = "gl-btn gl-btn-icon gl-btn-outline bg-body";
6969
const zoomOptions = { duration: 200, factor: 1.5 };
7070

7171
return (
7272
<div className="position-absolute d-flex flex-column sigma-controls gl-gap-1" style={{ right: 10, bottom: 10 }}>
7373
{GRAPH_SELECTION_MODES.map((mode) => (
7474
<button
7575
key={mode}
76-
className={cx("gl-btn gl-btn-icon", mode === graphSelectionMode ? "gl-btn-fill" : "gl-btn-outline bg-white")}
76+
className={cx("gl-btn gl-btn-icon", mode === graphSelectionMode ? "gl-btn-fill" : "gl-btn-outline bg-body")}
7777
onClick={() => setMode(mode)}
7878
title={t(`selection.${mode}`)}
7979
>

0 commit comments

Comments
 (0)