From 7ca389f1908d75651350f13d05d8e4c061868ea8 Mon Sep 17 00:00:00 2001 From: nuexq <145666753+nuexq@users.noreply.github.com> Date: Sun, 23 Mar 2025 11:43:07 +0000 Subject: [PATCH] fix(pinterest): variables and pin actions (#1660) * fix(pinterest): color-text-light equal @mantle to be more like original theme. * fix(pinterest): tertiary-hover be more like original theme * fix(pinterest): dealing with all cases for white rectangles * fix(pinterest): better pin Profile label colors/contrast * fix(pinterest): non-rounded background for pin links * fix(pinterest): one-bar-pill text contrast * fix(pinterest): closeup-image-main bg --- styles/pinterest/catppuccin.user.less | 34 +++++++++++++++++---------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/styles/pinterest/catppuccin.user.less b/styles/pinterest/catppuccin.user.less index d649f106..3fbabd29 100644 --- a/styles/pinterest/catppuccin.user.less +++ b/styles/pinterest/catppuccin.user.less @@ -69,7 +69,7 @@ } } - --color-text-light: @text; + --color-text-light: @mantle; --color-text-dark: @text; --color-text-default: @text; --color-text-inverse: @mantle; @@ -113,7 +113,7 @@ --color-background-button-secondary-hover: @surface1; --color-background-button-secondary-active: @surface2; --color-background-button-selected-default: @subtext1; - --color-background-button-tertiary-hover: @surface0; + --color-background-button-tertiary-hover: fade(@surface2, 10%); --color-background-button-shopping-default: @blue; --color-background-button-shopping-hover: darken(@blue, 12%); --color-background-tag-primary-default: @surface1; @@ -321,6 +321,10 @@ background-color: @base; } + button[data-test-id="one-bar-pill"] { + --color-text-dark: var(--color-text-inverse); + } + div[data-test-id="product-price-filter-one-bar-pill"] button[data-test-id="one-bar-pill"] svg { color: @base !important; } @@ -438,16 +442,28 @@ } } - div[data-test-id="homefeed-feed"] div[style*="background-color:#ffffff"] { - background-color: @base !important; + div[data-test-id="homefeed-feed"] { + div[style*="background-color:#ffffff"], + div[style*="background-color: rgb(255, 255, 255)"] { + background-color: @base !important; + } } /* Pins */ // image container - [data-test-id^="closeup-image"] div div { + [data-test-id="closeup-image-main"] div div { background-color: @mantle !important; } + + button[data-test-id="PinBetterSaveDropdown"] { + div[title="Profile"], svg { + color: if(@flavor = latte, var(--color-text-inverse), @text) !important; + } + .G0a div[title="Profile"], .G0a svg { + color: var(--color-text-inverse) !important; + } + } // pin icons button[data-test-id="feedback-button"], @@ -476,14 +492,6 @@ } } - div[data-test-id="pinrep-source-link"] { - background-color: @base !important; - - a div { - color: @text !important; - } - } - div[data-test-id="savedInfo"] a { background-color: transparent !important;