[Security] Complete Plymouth publication coverage
Keep SDDM color substitution collision-free for White themes, based on the fix proposed in #8469. Co-authored-by: itz4blitz <itz4blitz@users.noreply.github.com>
This commit is contained in:
co-authored by
itz4blitz
parent
0f15e2330f
commit
20a23b8c16
@@ -135,9 +135,14 @@ if ! $refresh_default; then
|
||||
magick "$plymouth_stage/$asset" -channel RGB +level-colors "#$text_hex","#$text_hex" "$plymouth_stage/$asset"
|
||||
done
|
||||
|
||||
# Substitute through unique tokens. Otherwise White's #ffffff background is
|
||||
# immediately mistaken for the template's text placeholder by the next sed
|
||||
# expression and rewritten to black.
|
||||
sed -i \
|
||||
-e "s/#1a1b26/#$bg_hex/g" \
|
||||
-e "s/#ffffff/#$text_hex/g" \
|
||||
-e 's/#1a1b26/#__OMARCHY_SDDM_BG__/g' \
|
||||
-e 's/#ffffff/#__OMARCHY_SDDM_TEXT__/g' \
|
||||
-e "s/#__OMARCHY_SDDM_BG__/#$bg_hex/g" \
|
||||
-e "s/#__OMARCHY_SDDM_TEXT__/#$text_hex/g" \
|
||||
"$sddm_stage/Main.qml"
|
||||
|
||||
for asset in bullet.png entry.png lock.png; do
|
||||
|
||||
Reference in New Issue
Block a user