# Convert breeze icons to breeze-dark icons # by substituting the colors in the stylesheet. # Which colors are substituted? # Only these we expect to be different in breeze and breeze-dark. # NOTE Existing icon files have #232629 and #4d4d4d for ColorScheme-Text. # Only #232629 is documented in https://community.kde.org/Guidelines_and_HOWTOs/Icon_Workflow_Tips#Stylesheets # NOTE Existing icons-dark/applets icons use #314045 as ColorScheme-ViewBackground, # while Icon_Workflow_Tips defines #232629. # STEP 1: Find color definitions only in stylesheet and mark for substitution. # Color definitions are like color:#232629; # To make sure they are only matched in the stylesheet, # and not in style attributes, they must follow { or the start of line. s!((\{|^)[[:space:]]*color:[[:space:]]*)#232629!\1#substitutecolorschemetext!; s!((\{|^)[[:space:]]*color:[[:space:]]*)#4d4d4d!\1#substituteothercolorschemetext!; s!((\{|^)[[:space:]]*color:[[:space:]]*)#eff0f1!\1#substitutecolorschemebackground!; s!((\{|^)[[:space:]]*color:[[:space:]]*)#fcfcfc!\1#substitutecolorschemeviewbackground!; # STEP 2: Substitution s!#substitutecolorschemetext!#eff0f1!; s!#substituteothercolorschemetext!#f2f2f2!; s!#substitutecolorschemebackground!#31363b!; s!#substitutecolorschemeviewbackground!#232629!;