feat: integrate tabbed color picker into extension popup

Replace native color inputs with swatch divs wired to the shared
tabbed picker widget for global and per-subreddit color controls.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 17:16:00 -04:00
parent d26f133efb
commit 2abb71fbb8
3 changed files with 119 additions and 60 deletions

View File

@@ -82,13 +82,14 @@ fieldset label {
font-size: 12px;
}
fieldset input[type="color"] {
fieldset .rt-color-swatch {
width: 40px;
height: 24px;
border: 1px solid #ccc;
border-radius: 3px;
padding: 1px;
cursor: pointer;
display: inline-block;
vertical-align: middle;
}
fieldset input[type="text"] {
@@ -201,6 +202,14 @@ fieldset input[type="text"] {
align-items: center;
}
.subreddit-entry-colors .rt-color-swatch {
width: 40px;
height: 24px;
border: 1px solid #ccc;
border-radius: 3px;
cursor: pointer;
}
/* --- Color Picker Widget --- */
.rt-color-picker {
margin: 8px 0;