Skip to content

Commit 799adb9

Browse files
committed
Merge branch 'dev'
2 parents ea6ca4d + a54b15b commit 799adb9

3 files changed

Lines changed: 28 additions & 10 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ If you receive a `NO_PUBKEY` error while running `apt update`, then you must add
8484
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 70F3445E637983CC
8585
```
8686

87+
#### Alternative Ubuntu install
88+
89+
Download the .deb package from the [Releases](https://github.com/Figma-Linux/figma-linux/releases) page, and install it with `apt`.
90+
```bash
91+
sudo apt install figma-linux_*_amd64.deb
92+
```
8793

8894
### Arch-based distros
8995

@@ -105,7 +111,7 @@ sudo dnf install figma-linux-*.x86_64.rpm
105111
1. Clone the repository:
106112
```bash
107113
git clone https://github.com/Figma-Linux/figma-linux
108-
cd linux
114+
cd figma-linux
109115
```
110116
2. Install Rust:
111117
```bash

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/middleware/ThemesManager.ts

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ export class ThemesManager {
8181
document.body.style.setProperty("--fg-overlay-sep", value);
8282
}
8383
}
84+
85+
document.body.style.setProperty("background-color", "var(--gb-panel)");
86+
87+
document.body.style.setProperty("--color-bg", "var(--bg-panel)");
88+
document.body.style.setProperty("--color-bg-selected", "var(--bg-panel)");
89+
document.body.style.setProperty("--color-text", "var(--text)");
90+
document.body.style.setProperty("--color-text-secondary", "var(--text)");
91+
document.body.style.setProperty("--color-border", "var(--borders)");
92+
document.body.style.setProperty("--color-text-disabled", "var(--text-disabled)");
93+
document.body.style.setProperty("--color-bg-selected-secondary", "var(--bg-panel)");
8494
}
8595

8696
init(): void {
@@ -94,7 +104,6 @@ export class ThemesManager {
94104
const additionStyleRules: string[] = [
95105
"#react-page { background-color: var(--bg-panel); }",
96106
`span[class*="action_option--shortcut"] { color: var(--fg-overlay); }`,
97-
`div[class*="search--searchContainer"] input { background-color: var(--bg-panel) !important; }`,
98107
`div[class*="file_browser_page_view"] { background-color: var(--bg-panel) !important; }`,
99108
];
100109

@@ -123,7 +132,6 @@ export class ThemesManager {
123132
}
124133

125134
if (/search--searchInput/.test(cssRule.selectorText)) {
126-
cssRule.style["backgroundColor"] = `var(--bg-panel)`;
127135
cssRule.style["color"] = `var(--text-active)`;
128136
}
129137

@@ -133,6 +141,15 @@ export class ThemesManager {
133141
if (/tool_bar--toolBarRightSide|pages_panel--pageRowSelected/.test(cssRule.selectorText)) {
134142
cssRule.style["fill"] = `var(--text-active)`;
135143
}
144+
if (/.svg-container/.test(cssRule.selectorText)) {
145+
additionStyleRules.push(`.svg-container path:not([fill="none"]) { fill: var(--text-active); }`);
146+
}
147+
if (/.text--_negText/.test(cssRule.selectorText)) {
148+
additionStyleRules.push(`${cssRule.selectorText} { color: var(--fg-header); }`);
149+
}
150+
if (/.navbar--workspaceSubtitle/.test(cssRule.selectorText)) {
151+
additionStyleRules.push(`${cssRule.selectorText} { color: var(--fg-header); }`);
152+
}
136153
if (/upgrade_section--icon/.test(cssRule.selectorText)) {
137154
additionStyleRules.push(`span[class*="upgrade_section--icon"] > svg > path { fill: var(--text); }`);
138155
}
@@ -146,11 +163,6 @@ export class ThemesManager {
146163
if (/basic_form--textInput/.test(cssRule.selectorText)) {
147164
cssRule.style["backgroundColor"] = `var(--bg-panel)`;
148165
}
149-
if (
150-
/(search--searchContainer--.*:hover|search--expandingSearchBoxContainerFocused)/.test(cssRule.selectorText)
151-
) {
152-
cssRule.style["backgroundColor"] = `var(--bg-header)`;
153-
}
154166
if (/step_breadcrumb--stepTitle/.test(cssRule.selectorText)) {
155167
cssRule.style["color"] = `var(--text-active)`;
156168
}

0 commit comments

Comments
 (0)