Skip to content

Commit 0cf4ff9

Browse files
committed
[chrome] fix a few more unstyled patches
1 parent 30b547f commit 0cf4ff9

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

packages/chrome/src/App.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { ComponentContext } from "dreamland/core";
2+
import { css } from "dreamland/core";
23
import { TabStrip } from "./components/TabStrip/TabStrip";
34
import { browser } from "./Browser";
45
import type { Tab } from "./Tab";
@@ -72,8 +73,18 @@ export function App(props: {}, cx: ComponentContext) {
7273
{use(browser.activetab.url, browser.settings.showBookmarksBar)
7374
.map(([u, pinned]) => pinned || u.href === "puter://newtab")
7475
.andThen(<BookmarksStrip />)}
75-
<div style="border-bottom: 1px solid var(--bg20)"></div>
76+
<div class="separator"></div>
7677
{cx.children}
7778
</div>
7879
);
7980
}
81+
App.style = css`
82+
:scope {
83+
background-color: var(--toolbar);
84+
--separator-color: color-mix(in srgb, currentColor 10%, transparent);
85+
}
86+
.separator {
87+
color: var(--toolbar);
88+
/*border-bottom: 1px solid var(--separator-color);*/
89+
}
90+
`;

packages/chrome/src/components/Omnibar/OmnibarButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ OmnibarButton.style = css`
3838
opacity: 0.4;
3939
}
4040
:scope.active:hover {
41-
background: var(--bg20);
41+
background: var(--toolbarbutton-hover-background);
4242
}
4343
:scope.active {
4444
opacity: 1;

packages/chrome/src/components/Omnibar/UrlInput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,15 @@ UrlInput.style = css`
137137
}
138138
139139
.placeholder {
140-
color: var(--fg4);
140+
color: var(--toolbar_text);
141+
opacity: 0.5;
141142
display: flex;
142143
align-items: center;
143144
}
144145
145146
.lefticon {
146147
font-size: 1.15em;
147-
color: var(--fg2);
148+
color: var(--toolbar_text);
148149
display: flex;
149150
margin: 0.25em;
150151

packages/chrome/src/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ body.light-mode {
8181
:root {
8282
font-family: "Inter", system-ui, sans-serif;
8383
--tab-height: 33px;
84+
85+
--toolbarbutton-hover-background: color-mix(
86+
in srgb,
87+
currentColor 17%,
88+
transparent
89+
);
90+
--toolbarbutton-active-background: color-mix(
91+
in srgb,
92+
currentColor 30%,
93+
transparent
94+
);
8495
}
8596

8697
* {

0 commit comments

Comments
 (0)