Skip to content

Commit

Permalink
Scale loginbox based on DPI
Browse files Browse the repository at this point in the history
  • Loading branch information
noctuid committed Dec 22, 2019
1 parent 52800ab commit 4f6322c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion multilockscreen
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ fx_color() {
create_loginbox () {
RECTANGLE="$CUR_DIR/rectangle.png"
local shadow="$CUR_DIR/shadow.png"
convert -size 300x80 xc:\#"$loginbox" -fill none $RECTANGLE
local width height
width=$(logical_px 300 1)
height=$(logical_px 80 2)
convert -size "$width"x"$height" xc:\#"$loginbox" -fill none $RECTANGLE
convert $RECTANGLE \
\( -clone 0 -background \#"$loginshadow" -shadow 100x5+0+0 \) +swap \
-background none -layers merge +repage $shadow
Expand Down

0 comments on commit 4f6322c

Please sign in to comment.