Skip to content

Commit

Permalink
fix(instagram): voice clip (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuexq authored Jan 26, 2025
1 parent 8c5918b commit 040dca1
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions styles/instagram/catppuccin.user.less
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
--primary-icon: @accent;
--primary-button-text: @mantle !important;
--primary-button: @blue !important;
--mwp-primary-theme-color: darken(@blue, 10%);
--chat-composer-button-color: darken(@blue, 10%);
scrollbar-color: @accent @crust;
}
#splash-screen {
Expand Down Expand Up @@ -214,8 +216,8 @@

/* sumting wong's popup box */
.x879a55,
.x7ywyr2 {
background-color: @surface1 !important;
.x7ywyr2:not([style*="background-color: rgb(var(--ig-highlight-background))"]) {
background-color: var(--surface1) !important;
}

/* Share box */
Expand Down Expand Up @@ -842,6 +844,49 @@
);
}

/* voice clip */
div.x7ywyr2 {
&[style*='background-color: rgb(var(--ig-highlight-background))'] {
div[aria-label="Play"],
div[aria-label="Pause"],
div[role="timer"],
div[role="slider"] {
background-color: @text !important;
}
div[style*='clip-path'] div.x5yr21d.xh8yej3.x1bhxuv2{
background-color: @subtext0 !important;
}
div[aria-label="Play"]:hover {
background-color: @subtext1 !important;
}
}
&[style*='background-color: var(--mwp-primary-theme-color)'] {
background-color: var(--mwp-primary-theme-color) !important;
div[aria-label="Play"],
div[aria-label="Pause"],
div[role="slider"],
div[role="timer"]{
background-color: @text !important;
}
div[aria-label="Play"]:hover {
background-color: @subtext1 !important;
}
}
}
/* voice clip recording container */
div[style*='background-color: var(--chat-composer-button-color)'] {
div[role="slider"] {
opacity: 1 !important;
background-color: darken(@blue, 4%) !important;
}
div[aria-label='Play'],
div[aria-label='Pause'],
div[role='timer'],
div[aria-label='Stop recording'] {
background-color: @text !important;
}
}

/* explicit music icon in notes */
.x1cp0k07 {
color: @text;
Expand Down

0 comments on commit 040dca1

Please sign in to comment.