Commit a06afc48 authored by Sergey V Turchin's avatar Sergey V Turchin

- get colors from KDE4

parent 0a805b00
AC_INIT( [branding], [0.1], [http://bugzilla.altlinux.ru] )
PROGRESS_COLOR=`./fetch_color selectBackground` #MIDDLE_COLOR_DEC
TITLE_COLOR=`./fetch_color handle`
INACTIVE_COLOR=`./fetch_color inactiveTitleBtnBg`
PROGRESS_COLOR=`./fetch_color Colors:Selection::BackgroundNormal` #MIDDLE_COLOR_DEC
TITLE_COLOR=`./fetch_color WM::activeBackground`
INACTIVE_COLOR=`./fetch_color WM::inactiveBackground`
LIGHT_COLOR_HEX=F5F5F5 #new
MIDDLE_COLOR_HEX=30c4a2 #new
DARK_COLOR_HEX=005650
......
#!/bin/bash
grep $1 kde3-settings/apps/kdisplay/color-schemes/scheme.kcsrc.in | cut -d= -f 2| tr , ' '| xargs printf "%x%x%x\n"
SECTION=`echo $1| sed 's|::.*||'`
PARAMETER=`echo $1| sed 's|.*::||'`
VALUE=
SECTION_FOUND=
while read LINE
do
if [ -z "$SECTION_FOUND" ] ; then
if [ "$LINE" == "[$SECTION]" ]; then
SECTION_FOUND=1
else
continue
fi
fi
if echo "$LINE" | grep -q "^${PARAMETER}=" ; then
VALUE=`echo "$LINE" | sed 's|.*=||'`
break
fi
done < graphics/kde4/kdm-color-scheme.colors
echo "$VALUE"| tr , ' '| xargs printf "%0.2x%0.2x%0.2x\n"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment