From 527ff4b8f037620c0a21a656f9cd771fc9dde1d9 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Wed, 10 Nov 2010 17:16:35 +0100 Subject: [PATCH] change style of slider + button using borderimage --- kivy/data/images/button.png | Bin 531 -> 1308 bytes kivy/data/images/slider-background.png | Bin 0 -> 837 bytes kivy/data/style.kv | 19 +++++++++---------- 3 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 kivy/data/images/slider-background.png diff --git a/kivy/data/images/button.png b/kivy/data/images/button.png index afe4d7a3ee9225c76bea0e1025542e720d90318b..4b1bcc3de5119b4f485974fe07a8df32fdb2972a 100644 GIT binary patch literal 1308 zcmV+%1>^dOP)Px#24YJ`L;wo_4ge1nvbyyE000SaNLh0L01m_e01m_fl`9S#00007bV*G`2igk? z4>lEufp$Lt00f*#L_t(o!?jm2ZXHJqecT<%9|$1H?vf@z00ZfiBN(Y&s88A;*Z9|P zp98oEkk(glohDs6>q{y0cW0I_#c(*Bl~P8HcJ|K<$;Zb>t^mOMpMSl*JiI#2bGjpl z|MO2ou$A(0Juk=KfBW!R-v9K=?Zx5MCz3ah4<~G;K-@LiGe04ZZ^EBT*KHTH{^aQGcv?Q>)&vww(^*^9gP|P?(s9;~Vi%3wk zu2r!-o$+}81v1S)Cgp~*HtK^=W z%LE|=)N%=Jw<O8@}PRjmOjSkG>XL^DciIAt`F9!U#Nc56B~T4~p4 zgOM|kw(RHvOnAJjdO|$?Z`ia-2OM0;^j#r{ESYv9E<=I|YSBLV;amsBMg$0Nds(= z#m2v(0*t5>LTD%vp(;Y|7`WmvDZm;`qSfhM-D44gid0b z%|xXOPK`?KfK)F<#!7%dv{eCzoc7zrM3Dm;d(|X}1a;Y|(J0+`%ljxVp(okM*%_1 zDR<`fq{HsKA}B9v6@XjcfS_uQ0(X(^SdXE~f=+aPw8%x^#H~VP<>0VOht+Eu{dDY( zUiMN&g(7%XG-jDTWAq<&Q>47CP*rb2&onDat}^%)6%vCYM#c}aV(F>Hp~z)L+V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U?re3Je5c_XlG1kOW*o185nfVg&1*5^~g0_>TWG%CsZe^GwKzly&i{jR@(X> zb-&!HzevT{m3T5tt3wNUI;48;wWx*`M+#R)0xw}^t=(dV36wt3>N_R23Y%Awf33J7 z0*3>VHJh;{in?kQH)YHU5u=`r6~xY1!u4lzKvszIa1oT6WAvO9hofv&wbs+ckY$k& z>ofC<+IxZMo6s~Ml|UiSw9{t1S*ll|nyDuMmkJwIshkUqfNFB)SV26ot6irj`<2<; z+@WknANKB(yz8twkiA8VaA@%>+p#_@ed#mmpe9Y;q_$udrv}!Bbpg6&s@DFRrdrk% z*F=;i(KvvM31`t~b^v8@7p-?PqrD515F)Pv&t;h{RK{m_Q0ijDMb@H)vqWp_DZXyv z44Hz>uM2^S=+IQpe-$j&0VKUty&7(cTkp3A{gv4Inph?pmAOZ$ghA@E*QSoWd%C_v zolKk&F{i+jfm8-6uu&o=AuSx1MUCv^L{(YJ23q2X!YR}2*7KdwJ`i~W;u7xm%sXSB z8c-!(nj_g~XMnCbXTqTCzY7;wL(=V8|BNKv2moKcy}pw?9&P;h&$pL9%nCKWPbMs3 P00000NkvXXu0mjfYyWI> literal 0 HcmV?d00001 diff --git a/kivy/data/style.kv b/kivy/data/style.kv index 586efceaa..dfc2a0262 100644 --- a/kivy/data/style.kv +++ b/kivy/data/style.kv @@ -21,13 +21,12 @@ : canvas: Color: - rgb: (.3, .3, .3) - Rectangle: - pos: self.pos - size: self.size - - Color: - rgb: (.7, .2, .5) - Rectangle: - pos: self.value_pos - size: (20,self.height) + rgb: 1, 1, 1 + BorderImage: + pos: self.pos + size: self.size + source: 'data/images/slider-background.png' + BorderImage: + pos: self.value_pos + size: (20, self.height) + source: 'data/images/button.png'