feat: new GDM greeter logo

Text in logo is capitalized (YourDev instead of yourdev)
Image file is installed in /usr/share/orange-yourdev-login
This commit is contained in:
Michel Decima
2023-01-18 13:24:32 +01:00
parent 5a6fe5ecc6
commit 6267240878
9 changed files with 56 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
[org/gnome/login-screen]
logo='/usr/share/plymouth/yourdev-logo.png'
logo='/usr/share/orange-yourdev-login/yourdev-logo.png'
fallback-logo='/usr/share/plymouth/ubuntu-logo.png'

11
images/Makefile Normal file
View File

@@ -0,0 +1,11 @@
PNGS = yourdev-logo-min.png yourdev-logo-maj.png
%.png: %.xcf
./xcf2png-one.sh $^ $@
all: $(PNGS)
clean:
rm -f $(PNGS)
.DELETE_ON_ERROR:

17
images/xcf2png-all.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# taken from https://stackoverflow.com/a/5846727
gimp -n -i -b - <<EOF
(let* ( (file's (cadr (file-glob "*.xcf" 1))) (filename "") (image 0) (layer 0) )
(while (pair? file's)
(set! image (car (gimp-file-load RUN-NONINTERACTIVE (car file's) (car file's))))
(set! layer (car (gimp-image-merge-visible-layers image CLIP-TO-IMAGE)))
(set! filename (string-append (substring (car file's) 0 (- (string-length (car file's)) 4)) ".png"))
(gimp-file-save RUN-NONINTERACTIVE image layer filename filename)
(gimp-image-delete image)
(set! file's (cdr file's))
)
(gimp-quit 0)
)
EOF

27
images/xcf2png-one.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
if (( $# == 0 )) ; then
echo "Missing argument." >&2
exit 1
fi
INFILE="$1" OUTFILE="$2"
if [[ ! -e "$INFILE" ]] ; then
echo "File not found: '$INFILE'" >&2
exit 1
fi
if [[ -z "$OUTFILE" ]] ; then
OUTFILE="$(basename "$INFILE" .xcf).png"
fi
# taken from https://stackoverflow.com/a/5846727
gimp -n -i -b - <<EOF
(let* ( (infile "${INFILE}") (outfile "${OUTFILE}") (image 0) (layer 0) )
(set! image (car (gimp-file-load RUN-NONINTERACTIVE infile infile)))
(set! layer (car (gimp-image-merge-visible-layers image CLIP-TO-IMAGE)))
(gimp-file-save RUN-NONINTERACTIVE image layer outfile outfile)
(gimp-image-delete image)
(gimp-quit 0)
)
EOF

BIN
images/yourdev-logo-maj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
images/yourdev-logo-maj.xcf Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB