Deduplicate tab theme related code

We've noticed that the search theme struct had two fields for a tab icon width and spacing. But we already have those in the tab theme struct. We decided to remove the duplicate and reuse the tab fields.

We also wanted to move where the spacing is being used. Instead of doing it at the left of the label, we do it at the right of the icon to match how it is done in other areas of the UI.

Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
This commit is contained in:
Petros Amoiridis
2023-02-22 20:28:57 +02:00
co-authored by Julia
parent 2ec5c88f98
commit 81ece4fd44
3 changed files with 3 additions and 9 deletions
-2
View File
@@ -29,8 +29,6 @@ export default function search(colorScheme: ColorScheme) {
return {
// TODO: Add an activeMatchBackground on the rust side to differenciate between active and inactive
matchBackground: withOpacity(foreground(layer, "accent"), 0.4),
tabIconSpacing: 8,
tabIconWidth: 14,
optionButton: {
...text(layer, "mono", "on"),
background: background(layer, "on"),