make default tdm screen text clearer against dark background

and align login button with clickable area
added option for language specific patches to tde-i18n.SlackBuild
pull/25/head
Ray-V 6 years ago
parent 6e096d4059
commit b29a0d2c84

@ -0,0 +1,6 @@
There is an option in tde-i18n.SlackBuild to include a language specific patch file in the build.
It needs to be named tde-i18n-{lang}-patch and will then automatically be included for the build for that language.
Because of its position in the Slackbuild and the patch -p0 option, the path to the patch file must start with 'tde-i18n-{lang}' - see tde-i18n-en_GB-patch for an example.

@ -0,0 +1,4 @@
--- tde-i18n-en_GB/messages/tdebase/libkickermenu_prefmenu.po
+++ tde-i18n-en_GB/messages/tdebase/libkickermenu_prefmenu.po
@@ -23 +22,0 @@
-#, fuzzy

@ -55,10 +55,13 @@ cd $PRGNAM
mkdir -p $PRGNAM # need -p for git builds if more than one lang
cd $PRGNAM
echo -e " copying $PRGNAM-$lang source files to build area ... \n"
cp -a $BUILD_TDE_ROOT/src/cgit/tdei18n/cgit/tde-i18n/plain/tde-i18n-$lang .
cp -a $BUILD_TDE_ROOT/src/cgit/{admin,cmake} tde-i18n-$lang/
(cd $BUILD_TDE_ROOT/src/cgit
cp -a tdei18n/cgit/tde-i18n/plain/tde-i18n-$lang $TMP_BUILD/tmp-$PRGNAM/$PRGNAM/
cp -a --parents {admin,cmake}/* $TMP_BUILD/tmp-$PRGNAM/$PRGNAM/tde-i18n-$lang/)
}
## language specific patches
patch -p0 < $SRCDIR/tde-i18n-$lang-patch || true # continue if patch file doesn't exist
chown_fn
@ -117,16 +120,10 @@ $PRGNAM-$lang:
cat <<EOINS >> $PKG/install/doinst.sh
# Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then
chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1
fi
\$(which update-desktop-database) $INSTALL_TDE/share/applications
# Update hicolor theme cache:
if [ -d usr/share/icons/hicolor ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null
fi
fi
\$(which gtk-update-icon-cache) -f -t $INSTALL_TDE/share/icons/hicolor
EOINS

@ -43,6 +43,40 @@ sed -i 's|data != None|data != 0|' twin/client.cpp
sed -i "s|konq_iconview|$VIEWMODE|" konqueror/profile_filemanagement.desktop
## allow for configuration files directory != /etc/trinity
sed -i "s|/etc/trinity/|$SYS_CNF_DIR/|" tdm/kfrontend/gentdmconf.c || true
## make default tdm screen text clearer against dark background and align login button with clickable area
## edit color="#ffff74" and/or color="#ff0000" for your own choice
echo $'
--- tdm/kfrontend/themes/o2_enterprise/enterprise.xml
+++ tdm/kfrontend/themes/o2_enterprise/enterprise.xml
@@ -12 +12 @@
- <normal color="#000000" font="Sans 10" />
+ <normal color="#ffff74" font="Sans 10" />
@@ -39 +39 @@
- <pos width="box" x="540" y="188" anchor="c" height="box" />
+ <pos width="38" x="540" y="188" anchor="c" height="box" />
@@ -42 +42 @@
- <pos x="90%" y="50%" anchor="c" />
+ <pos x="40%" y="50%" anchor="c" />
@@ -59 +59 @@
- <normal color="#000000" font="Sans Condensed 10" />
+ <normal color="#ffff74" font="Sans Condensed 10" />
@@ -64 +64 @@
- <normal color="#000000" font="Sans Condensed 10" />
+ <normal color="#ffff74" font="Sans Condensed 10" />
@@ -86,2 +86,2 @@
- <pos x="435" y="293" anchor="s" />
- <normal color="#CD0000" font="Sans 10" />
+ <pos x="435" y="240" anchor="s" />
+ <normal color="#ff0000" font="Sans 11" />
@@ -93,2 +93,2 @@
- <normal color="#CD0000" font="Sans 10" />
- <pos x="435" y="323" anchor="s" />
+ <normal color="#ff0000" font="Sans 11" />
+ <pos x="435" y="260" anchor="s" />
' | while read line
do
patch -p0
done
chown_fn

Loading…
Cancel
Save