Skip to content

Commit

Permalink
fix(syncthing): replace leaky port capture with proper url config (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle authored Oct 8, 2023
1 parent 80841a5 commit 51f17a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions styles/syncthing/catppuccin.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@name Syncthing Catppuccin
@namespace github.com/catppuccin/userstyles/styles/syncthing
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/syncthing
@version 0.1.0
@version 0.1.1
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/syncthing/catppuccin.user.css
@description Soothing pastel theme for Syncthing
@author Catppuccin
Expand All @@ -12,11 +12,15 @@
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire*", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
@var number port "Syncthing Port" 8384
@var text urls "URL(s) for Syncthing" "127\.0\.0\.1\:8384,localhost\:8384"
==/UserStyle== */

@-moz-document regexp(%("https?://.*:%d/.*", @port))
/*
`replace(<stuff> ," ", "", "g")` is here to remove extra spaces (if any)
*/

@-moz-document regexp(replace(replace(%("https?://(%s)/.*", @urls), ",", "|"), " ", "", "g"))
{
@catppuccin: {
@latte: {
Expand Down

0 comments on commit 51f17a0

Please sign in to comment.