Skip to content

Truly independent web browser

Base: Call the tab layout choice Layout and name what differs

Andreas Kling6207d5caedfe
diff --git a/Base/res/ladybird/about-pages/settings.html b/Base/res/ladybird/about-pages/settings.html
index b5685fd7b7d..6552b195fd2 100644
--- a/Base/res/ladybird/about-pages/settings.html
+++ b/Base/res/ladybird/about-pages/settings.html
@@ -945,7 +945,7 @@
</div>
<div id="force-dark-sites" class="card-group" aria-label="Sites with a force-dark choice"></div>
<div id="tab-layout-group" class="card-group">
- <span id="tab-layout-title">Tabs</span>
+ <span id="tab-layout-title">Layout</span>
<div class="tab-options" role="radiogroup" aria-labelledby="tab-layout-title">
<label class="tab-option">
<input type="radio" name="tab-layout" value="horizontal" />
@@ -953,7 +953,7 @@
<span class="preview-strip"><i class="active"></i><i></i><i></i></span>
<span class="preview-toolbar"><i></i></span>
</span>
- <span class="tab-option-label">Along the top</span>
+ <span class="tab-option-label">Tabs on top</span>
</label>
<label class="tab-option">
<input type="radio" name="tab-layout" value="vertical" />
@@ -963,7 +963,7 @@
><span class="preview-toolbar"><i></i></span
></span>
</span>
- <span class="tab-option-label">Down the side</span>
+ <span class="tab-option-label">Tabs on the side</span>
</label>
<label class="tab-option">
<input type="radio" name="tab-layout" value="sidebar" />
@@ -971,7 +971,7 @@
<span class="preview-sidebar"><b></b><i></i><i class="active"></i><i></i></span>
<span class="preview-main"></span>
</span>
- <span class="tab-option-label">In the sidebar</span>
+ <span class="tab-option-label">Everything in the sidebar</span>
</label>
</div>
</div>
diff --git a/Base/res/ladybird/about-pages/welcome.html b/Base/res/ladybird/about-pages/welcome.html
index c3957443ddc..ceaf570e171 100644
--- a/Base/res/ladybird/about-pages/welcome.html
+++ b/Base/res/ladybird/about-pages/welcome.html
@@ -59,7 +59,7 @@ SPDX-License-Identifier: BSD-2-Clause
</div>
</section>
<section id="tab-mode-section" aria-labelledby="tab-mode-title">
- <h2 id="tab-mode-title">Tabs</h2>
+ <h2 id="tab-mode-title">Layout</h2>
<div class="tab-options" role="radiogroup" aria-labelledby="tab-mode-title">
<label class="tab-option">
<input type="radio" name="tab-mode" value="horizontal" checked />
@@ -67,7 +67,7 @@ SPDX-License-Identifier: BSD-2-Clause
<span class="preview-strip"><i class="active"></i><i></i><i></i></span>
<span class="preview-toolbar"><i></i></span>
</span>
- <span class="tab-option-label">Along the top</span>
+ <span class="tab-option-label">Tabs on top</span>
</label>
<label id="vertical-tab-option" class="tab-option">
<input type="radio" name="tab-mode" value="vertical" />
@@ -77,7 +77,7 @@ SPDX-License-Identifier: BSD-2-Clause
><span class="preview-toolbar"><i></i></span
></span>
</span>
- <span class="tab-option-label">Down the side</span>
+ <span class="tab-option-label">Tabs on the side</span>
</label>
</div>
</section>
diff --git a/Base/res/ladybird/ladybird.css b/Base/res/ladybird/ladybird.css
index 1e41b2602e7..61a82bf5e66 100644
--- a/Base/res/ladybird/ladybird.css
+++ b/Base/res/ladybird/ladybird.css
@@ -75,6 +75,7 @@
--preview-tab-inactive: #cfcfd4;
--preview-tab-current: #bdbdc3;
--preview-field: #e6e6e9;
+ --preview-sidebar-field: #ffffff;
--choice: var(--primary);
--choice-fill: rgba(10, 102, 208, 0.08);
}
@@ -112,6 +113,7 @@
--preview-tab-inactive: #4a4a50;
--preview-tab-current: #5b5b61;
--preview-field: #3a3a3e;
+ --preview-sidebar-field: #55555b;
--choice: #3d8bff;
--choice-fill: rgba(61, 139, 255, 0.16);
}
@@ -507,12 +509,16 @@ input[type="checkbox"][switch]:checked::before {
background: var(--preview-tab-current);
}
-/* With everything in the sidebar, the address field heads the sidebar's tabs. */
+/* With everything in the sidebar, the address field sits at the top of the sidebar, above its tabs. */
+.preview-sidebar:has(> b) {
+ padding-top: 6px;
+}
+
.preview-sidebar b {
- height: 5px;
- margin-bottom: 3px;
- border-radius: 2px;
- background: var(--page);
+ height: 9px;
+ margin-bottom: 4px;
+ border-radius: 3px;
+ background: var(--preview-sidebar-field);
}
.preview-main {