Very early KDE 6 release.

This commit is contained in:
wackyideas 2024-08-09 03:20:25 +02:00
parent 7cc4ccabbc
commit 686046d4f7
6272 changed files with 140920 additions and 529657 deletions

View file

@ -0,0 +1,42 @@
import QtQuick 2.8
import SddmComponents 2.0
import QtGraphicalEffects 1.0
Rectangle
{
color: "black"
Background
{
id: background
anchors.fill: parent
fillMode: Image.Stretch
source: "nonredist/crop/background-resized.png"
}
Text
{
text: "Shutting down..."
color: "white"
font.pixelSize: 24
anchors.centerIn: parent
anchors.horizontalCenterOffset: 12
anchors.verticalCenterOffset: -49
renderType: Text.NativeRendering
font.hintingPreference: Font.PreferFullHinting
font.kerning: false
anchors.top: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
layer.enabled: true
layer.effect: DropShadow
{
verticalOffset: 1
color: "#444"
radius: 7
samples: 20
}
}
}

View file

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="6"
height="6"
viewBox="0 0 6 6"
version="1.1"
id="svg5"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="bullet.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="69.584386"
inkscape:cx="0.78322168"
inkscape:cy="3.0897736"
inkscape:window-width="1920"
inkscape:window-height="1013"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient869">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop865" />
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0.73727435"
id="stop873" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop867" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient869"
id="radialGradient871"
cx="3"
cy="3"
fx="3"
fy="3"
r="2"
gradientUnits="userSpaceOnUse" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<circle
style="fill:url(#radialGradient871);stroke-width:1.27238;stroke-linejoin:round;fill-opacity:1"
id="path234"
cx="3"
cy="3"
r="2" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1,145 @@
#!/bin/bash
# change to your resolution
BACKGROUND_RES=1920x1080
# required as some paths have whitespace
export IFS=$'\t\n'
extractroot="/mnt/extract"
if [ ! -d "$extractroot" ]; then
echo "Extraction source does not exist"
exit 1
fi
if [ ! -f "/usr/local/bin/convert" ]; then
echo "To run the extraction script a patched version of imagemagick is required,"
echo "Due to recent code changes in imagemagick, activity.bmp will now fail to convert."
echo "Use the scripts in the imagemagick subdirectory to install the patched version"
echo "into /usr/local, then run this script again. Once assets are extracted you may"
echo "uninstall the patched version."
exit 1
fi
tmpdir="$(mktemp -d)"
function unpack_pe()
{
filepath="$(echo "$1" | basenc --base64url -d)"
export unpackdir="$tmpdir/$(basename "$1")"
7z x "$extractroot/$filepath" -o"$unpackdir" &>/dev/null
}
function bmp2png()
{
/usr/bin/convert "$1/$2" "$3/$4"
}
unpack_pe "V2luZG93cy9TeXN0ZW0zMi9ib290cmVzLmRsbAo="
# boot animation
out="$tmpdir/crop"; mkdir -p "$out"
dir="$unpackdir"
in="$dir/activity.bmp"
LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/convert -define bmp:ignore-filesize=True "$in" "$out/activity.png"
in="$out/activity.png"
/usr/bin/convert "$in" -crop "1x105@" "$out/boot%d.png"
for((i=104;i>=0;i--)); do mv "$out/boot$i.png" "$out/boot$((i + 1)).png"; done
unpack_pe "V2luZG93cy9CcmFuZGluZy9CYXNlYnJkL2Jhc2VicmQuZGxsCg=="
# branding
out="$tmpdir/crop"; mkdir -p "$out"
dir="$unpackdir/.rsrc/BITMAP"
bmp2png "$dir" "120.bmp" "$out" "branding-white.png"
unpack_pe "V2luZG93cy9TeXN0ZW0zMi9pbWFnZXJlcy5kbGwK"
# wallpaper
dir="$unpackdir/.rsrc/IMAGE"
cp "$dir/5038" "$out/background.jpg"
/usr/bin/convert "$out/background.jpg" -filter Catrom -resize ${BACKGROUND_RES}! "$out/background-resized.png"
# shutdown animation
dir="$unpackdir/.rsrc/BITMAP"
bmp2png "$dir" "5002.bmp" "$out" "5002.png"
in="$out/5002.png"
/usr/bin/convert "$in" -crop "18x1@" "$out/shutdown%d.png"
for((i=17;i>=0;i--)); do mv "$out/shutdown$i.png" "$out/shutdown$((i + 1)).png"; done
unpack_pe "V2luZG93cy9TeXN0ZW0zMi9hdXRodWkuZGxsCg=="
# password input
out="$tmpdir/crop"; mkdir -p "$out"
dir="$unpackdir/.rsrc/BITMAP"
bmp2png "$dir" "11001.bmp" "$out" "11001.png"
function inputbox
{
newname="$1"
in="$2"
/usr/bin/convert "$in" -crop 4x4+0+0 "$out/$newname-nw.png"
/usr/bin/convert "$in" -crop 4x4+5+0 "$out/$newname-ne.png"
/usr/bin/convert "$in" -crop 4x4+5+5 "$out/$newname-se.png"
/usr/bin/convert "$in" -crop 4x4+0+5 "$out/$newname-sw.png"
/usr/bin/convert "$in" -crop 1x4+4+0 "$out/$newname-n.png"
/usr/bin/convert "$in" -crop 1x4+4+5 "$out/$newname-s.png"
/usr/bin/convert "$in" -crop 4x1+5+4 "$out/$newname-e.png"
/usr/bin/convert "$in" -crop 4x1+0+4 "$out/$newname-w.png"
/usr/bin/convert "$in" -crop 1x1+4+4 "$out/$newname-c.png"
in="$out/$newname-n.png"
/usr/bin/convert "$in" +repage -resize 217x4\! "$out/$newname-n-resized.png"
in="$out/$newname-s.png"
/usr/bin/convert "$in" +repage -resize 217x4\! "$out/$newname-s-resized.png"
in="$out/$newname-e.png"
/usr/bin/convert "$in" +repage -resize 4x17\! "$out/$newname-e-resized.png"
in="$out/$newname-w.png"
/usr/bin/convert "$in" +repage -resize 4x17\! "$out/$newname-w-resized.png"
in="$out/$newname-c.png"
/usr/bin/convert "$in" +repage -resize 217x17\! "$out/$newname-c-resized.png"
/usr/bin/convert +append "$out/$newname-nw.png" "$out/$newname-n-resized.png" "$out/$newname-ne.png" "$out/$newname-top.png"
/usr/bin/convert +append "$out/$newname-w-resized.png" "$out/$newname-c-resized.png" "$out/$newname-e-resized.png" "$out/$newname-middle.png"
/usr/bin/convert +append "$out/$newname-sw.png" "$out/$newname-s-resized.png" "$out/$newname-se.png" "$out/$newname-bottom.png"
/usr/bin/convert -append "$out/$newname-top.png" "$out/$newname-middle.png" "$out/$newname-bottom.png" "$out/$newname.png"
}
inputbox "input-focus" "$out/11001.png"
# text
echo "U3RhcnRpbmcgV2luZG93cwo=" | basenc --base64url -d > "$out/maintext.txt"
echo "wqkgTWljcm9zb2Z0IENvcnBvcmF0aW9uCg==" | basenc --base64url -d > "$out/branding.txt"
FONT="$(echo "U2Vnb2UgVUkK" | basenc --base64url -d)"
pango-view \
--font="$FONT" \
--background="transparent" \
--foreground="#ffffff" \
--dpi=144 \
--antialias=gray \
--hinting=slight \
--hint-metrics=on \
-qo "$out/maintext.png" "$out/maintext.txt"
pango-view \
--font="$FONT" \
--background="transparent" \
--foreground="#777777" \
--dpi=90 \
--antialias=gray \
--hinting=slight \
--hint-metrics=on \
-qo "$out/branding.png" "$out/branding.txt"
# bullet
inkscape bullet.svg -o "$out/bullet.png"
ln -sfT "$tmpdir" nonredist
echo Done

View file

@ -0,0 +1,3 @@
#!/bin/bash
convert ../assets/boot105.png -gravity center -background black -extent 640x360 ../preview.png

View file

@ -0,0 +1,15 @@
#!/bin/bash
# The text on the shutdown screen should be RGB subpixel anti-aliased,
# but pango-view produces green garbled crap when trying to render text
# onto a transparent background.
# https://stackoverflow.com/questions/49319212/pangocairo-discolouration-on-transparent-recording-surfaces
#
# Instead we recreate the shutdown screen inside a basic SDDM theme, then launch
# sddm-greeter and save a screenshot.
sddm-greeter --test-mode --theme . &
sleep 1
spectacle --fullscreen --background --nonotify --delay 1000 --output ../assets/background-shutdown.png
sleep 1
killall sddm-greeter

View file

@ -0,0 +1,15 @@
diff -Naru a/coders/bmp.c b/coders/bmp.c
--- a/coders/bmp.c 2024-05-25 21:55:36.000000000 +0930
+++ b/coders/bmp.c 2024-06-04 00:15:34.022710478 +0930
@@ -706,9 +706,11 @@
*/
ignore_filesize=IsStringTrue(GetImageOption(image_info,
"bmp:ignore-filesize"));
+#if 0
if ((ignore_filesize == MagickFalse) && (bmp_info.file_size != 0) &&
((MagickSizeType) bmp_info.file_size > GetBlobSize(image)))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
+#endif
if (bmp_info.offset_bits < bmp_info.size)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
bmp_info.offset_bits=MagickMax(14+bmp_info.size,bmp_info.offset_bits);

View file

@ -0,0 +1,61 @@
#!/bin/bash
# Based on the Arch Linux PKGBUILD from June 4th 2024
# https://gitlab.archlinux.org/archlinux/packaging/packages/imagemagick/-/raw/9ef4423e069818c51a4bcc0be0f1d9937e8991f1/PKGBUILD
IM="$(cat imagemagick-version.txt)"
function funcFetch()
{
wget -c "https://imagemagick.org/archive/$IM.zip"
unzip "$IM.zip"
}
function funcPatch()
{
patch -p1 < ../imagemagick-bmp-fix.patch
}
function funcConfigure()
{
./configure \
--prefix=/usr/local \
--sysconfdir=/usr/local/etc \
--enable-shared \
--disable-static \
--with-dejavu-font-dir=/usr/share/fonts/TTF \
--with-gs-font-dir=/usr/share/fonts/gsfonts \
PSDelegate=/usr/bin/gs \
XPSDelegate=/usr/bin/gxps \
PCLDelegate=/usr/bin/gpcl6 \
--enable-hdri \
--enable-opencl \
--without-gslib \
--with-djvu \
--with-fftw \
--with-jxl \
--with-lqr \
--with-modules \
--with-openexr \
--with-openjp2 \
--with-perl \
--with-perl-options='INSTALLDIRS=vendor INSTALL_BASE=' \
--with-rsvg \
--with-webp \
--with-wmf \
--with-xml \
--without-autotrace \
--without-dps \
--without-fpx \
--without-gcc-arch \
--without-gvc
}
funcFetch
cd "$IM"
funcPatch
funcConfigure
make

View file

@ -0,0 +1 @@
ImageMagick-7.1.1-33

View file

@ -0,0 +1,6 @@
#!/bin/bash
IM="$(cat imagemagick-version.txt)"
cd "$IM"
sudo make install

View file

@ -0,0 +1,6 @@
#!/bin/bash
IM="$(cat imagemagick-version.txt)"
cd "$IM"
sudo make uninstall

View file

@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p ../assets
cp -f nonredist/crop/boot*.png ../assets
cp -f nonredist/crop/shutdown*.png ../assets
cp -f nonredist/crop/{maintext,branding,branding-white,bullet,input-focus}.png ../assets