From db6a36a6500dbd647876a2af37b0663b69c98e30 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sat, 28 Jan 2017 00:16:24 -0500 Subject: [PATCH] Updated text alignment icons. --- glabels/Icons.h | 44 ++++++++++++- glabels/icons.qrc | 18 ++++-- .../actions/glabels-align-text-center.svg | 15 +++++ .../22x22/actions/glabels-align-text-left.svg | 15 +++++ .../actions/glabels-align-text-right.svg | 15 +++++ .../actions/glabels-valign-text-bottom.svg | 12 ++++ .../actions/glabels-valign-text-middle.svg | 15 +++++ .../22x22/actions/glabels-valign-text-top.svg | 12 ++++ .../actions/glabels-align-text-center.png | Bin 384 -> 0 bytes .../actions/glabels-align-text-center.svg | 15 +++++ .../24x24/actions/glabels-align-text-left.png | Bin 398 -> 0 bytes .../24x24/actions/glabels-align-text-left.svg | 15 +++++ .../actions/glabels-align-text-right.png | Bin 375 -> 0 bytes .../actions/glabels-align-text-right.svg | 15 +++++ .../actions/glabels-valign-text-bottom.png | Bin 481 -> 0 bytes .../actions/glabels-valign-text-bottom.svg | 12 ++++ .../actions/glabels-valign-text-middle.png | Bin 639 -> 0 bytes .../actions/glabels-valign-text-middle.svg | 15 +++++ .../24x24/actions/glabels-valign-text-top.png | Bin 398 -> 0 bytes .../24x24/actions/glabels-valign-text-top.svg | 12 ++++ glabels/ui/ObjectEditor.ui | 61 +++++++++++++----- 21 files changed, 265 insertions(+), 26 deletions(-) create mode 100644 glabels/icons/22x22/actions/glabels-align-text-center.svg create mode 100644 glabels/icons/22x22/actions/glabels-align-text-left.svg create mode 100644 glabels/icons/22x22/actions/glabels-align-text-right.svg create mode 100644 glabels/icons/22x22/actions/glabels-valign-text-bottom.svg create mode 100644 glabels/icons/22x22/actions/glabels-valign-text-middle.svg create mode 100644 glabels/icons/22x22/actions/glabels-valign-text-top.svg delete mode 100644 glabels/icons/24x24/actions/glabels-align-text-center.png create mode 100644 glabels/icons/24x24/actions/glabels-align-text-center.svg delete mode 100644 glabels/icons/24x24/actions/glabels-align-text-left.png create mode 100644 glabels/icons/24x24/actions/glabels-align-text-left.svg delete mode 100644 glabels/icons/24x24/actions/glabels-align-text-right.png create mode 100644 glabels/icons/24x24/actions/glabels-align-text-right.svg delete mode 100644 glabels/icons/24x24/actions/glabels-valign-text-bottom.png create mode 100644 glabels/icons/24x24/actions/glabels-valign-text-bottom.svg delete mode 100644 glabels/icons/24x24/actions/glabels-valign-text-middle.png create mode 100644 glabels/icons/24x24/actions/glabels-valign-text-middle.svg delete mode 100644 glabels/icons/24x24/actions/glabels-valign-text-top.png create mode 100644 glabels/icons/24x24/actions/glabels-valign-text-top.svg diff --git a/glabels/Icons.h b/glabels/Icons.h index 194c444..a162738 100644 --- a/glabels/Icons.h +++ b/glabels/Icons.h @@ -146,6 +146,8 @@ namespace glabels AlignLeft() { addFile( ":icons/16x16/actions/glabels-align-left.png" ); + addFile( ":icons/22x22/actions/glabels-align-left.svg" ); + addFile( ":icons/24x24/actions/glabels-align-left.svg" ); } }; @@ -280,12 +282,46 @@ namespace glabels }; + class AlignTextLeft : public QIcon + { + public: + AlignTextLeft() + { + addFile( ":icons/22x22/actions/glabels-align-text-left.svg" ); + addFile( ":icons/24x24/actions/glabels-align-text-left.svg" ); + } + }; + + + class AlignTextCenter : public QIcon + { + public: + AlignTextCenter() + { + addFile( ":icons/22x22/actions/glabels-align-text-center.svg" ); + addFile( ":icons/24x24/actions/glabels-align-text-center.svg" ); + } + }; + + + class AlignTextRight : public QIcon + { + public: + AlignTextRight() + { + addFile( ":icons/22x22/actions/glabels-align-text-right.svg" ); + addFile( ":icons/24x24/actions/glabels-align-text-right.svg" ); + } + }; + + class AlignTextBottom : public QIcon { public: AlignTextBottom() { - addFile( ":icons/24x24/actions/glabels-align-text-bottom.png" ); + addFile( ":icons/22x22/actions/glabels-valign-text-bottom.svg" ); + addFile( ":icons/24x24/actions/glabels-valign-text-bottom.svg" ); } }; @@ -295,7 +331,8 @@ namespace glabels public: AlignTextMiddle() { - addFile( ":icons/24x24/actions/glabels-align-text-middle.png" ); + addFile( ":icons/22x22/actions/glabels-valign-text-middle.svg" ); + addFile( ":icons/24x24/actions/glabels-valign-text-middle.svg" ); } }; @@ -305,7 +342,8 @@ namespace glabels public: AlignTextTop() { - addFile( ":icons/24x24/actions/glabels-align-text-top.png" ); + addFile( ":icons/22x22/actions/glabels-valign-text-top.svg" ); + addFile( ":icons/24x24/actions/glabels-valign-text-top.svg" ); } }; diff --git a/glabels/icons.qrc b/glabels/icons.qrc index b1e0494..1f6ec84 100644 --- a/glabels/icons.qrc +++ b/glabels/icons.qrc @@ -32,6 +32,9 @@ icons/16x16/actions/glabels-text.png icons/16x16/apps/glabels.png + icons/22x22/actions/glabels-align-text-center.svg + icons/22x22/actions/glabels-align-text-left.svg + icons/22x22/actions/glabels-align-text-right.svg icons/22x22/actions/glabels-arrow.svg icons/22x22/actions/glabels-barcode.svg icons/22x22/actions/glabels-box.svg @@ -39,12 +42,15 @@ icons/22x22/actions/glabels-image.svg icons/22x22/actions/glabels-line.svg icons/22x22/actions/glabels-text.svg + icons/22x22/actions/glabels-valign-text-bottom.svg + icons/22x22/actions/glabels-valign-text-middle.svg + icons/22x22/actions/glabels-valign-text-top.svg icons/24x24/actions/edit-clear.png icons/24x24/actions/edit-find.png - icons/24x24/actions/glabels-align-text-center.png - icons/24x24/actions/glabels-align-text-left.png - icons/24x24/actions/glabels-align-text-right.png + icons/24x24/actions/glabels-align-text-center.svg + icons/24x24/actions/glabels-align-text-left.svg + icons/24x24/actions/glabels-align-text-right.svg icons/24x24/actions/glabels-arrow.svg icons/24x24/actions/glabels-barcode.svg icons/24x24/actions/glabels-box.svg @@ -59,9 +65,9 @@ icons/24x24/actions/glabels-object-properties.png icons/24x24/actions/glabels-pencil.png icons/24x24/actions/glabels-text.svg - icons/24x24/actions/glabels-valign-text-bottom.png - icons/24x24/actions/glabels-valign-text-middle.png - icons/24x24/actions/glabels-valign-text-top.png + icons/24x24/actions/glabels-valign-text-bottom.svg + icons/24x24/actions/glabels-valign-text-middle.svg + icons/24x24/actions/glabels-valign-text-top.svg icons/24x24/actions/edit-copy.png icons/24x24/actions/edit-cut.png icons/24x24/actions/edit-paste.png diff --git a/glabels/icons/22x22/actions/glabels-align-text-center.svg b/glabels/icons/22x22/actions/glabels-align-text-center.svg new file mode 100644 index 0000000..3b86295 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-align-text-center.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-align-text-left.svg b/glabels/icons/22x22/actions/glabels-align-text-left.svg new file mode 100644 index 0000000..8e095c4 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-align-text-left.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-align-text-right.svg b/glabels/icons/22x22/actions/glabels-align-text-right.svg new file mode 100644 index 0000000..5da13fa --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-align-text-right.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-valign-text-bottom.svg b/glabels/icons/22x22/actions/glabels-valign-text-bottom.svg new file mode 100644 index 0000000..0e01e1b --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-valign-text-bottom.svg @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-valign-text-middle.svg b/glabels/icons/22x22/actions/glabels-valign-text-middle.svg new file mode 100644 index 0000000..6be55af --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-valign-text-middle.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-valign-text-top.svg b/glabels/icons/22x22/actions/glabels-valign-text-top.svg new file mode 100644 index 0000000..0f0e13e --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-valign-text-top.svg @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-align-text-center.png b/glabels/icons/24x24/actions/glabels-align-text-center.png deleted file mode 100644 index 21258160bdfef3eac3f5b43d7cadb2b27e2ba273..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 384 zcmV-`0e}99P){? z3oq8?=7VqXue}7|Uo)qG1t4^y&{0r^ov@%xmI3PXm<5`BCc)bF-+riAc^8}bgKLOnP^!*iYpP5Vv zPcI`39}M&dJ#_RNwAu~St|};1G@NT$q_YW}CL%bFD7*tn-p8JQ2V2{l-}*53?l6L| zLhju`NDb1T-J9Hk=?&Zu?|5{hgWKLUn(aFGU#=EWDCTgMOCg?$A{q z?tcY{ybI^<-5)z8#K`^*SqAVf`1aJBRlYwL{1!39GB+F(Qg0000 + + + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-align-text-left.png b/glabels/icons/24x24/actions/glabels-align-text-left.png deleted file mode 100644 index e38b02f5285ffcd97d4c5f3564dfab8165f9242d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 398 zcmV;90df9`P)aiqKt=+rt*_#%`;O0U2X7xQXqyDhRvonm z9a^OXrBpz!aEVkV0XY#xC>p@2&yD`OkpOl(M=X|Qj2kO!CG+9n@W;XA5u6V4s{^ys z#%nLnCc)!V9Y&)9y;g>*6;V)f$Xun6NXa;t!w7_Z)WMNk?2Cqj-^0%CHa535sFwi% z$JwZZX@p@`$P64vu8AB7E}jhCg9f=rvt^*(tfFe%L93{^DPJS6Wa<2q={REX2!atm zynYW(JQ76735T#hun$vrz%UG%?H-8K!DRh2)WNN;(%va)O22#P-_PdLw0|y=F+}AM s&VpV#@38?k8#}TCw%0$4i}rs2-|V~vIGA+kg8%>k07*qoM6N<$g8UD(-~a#s diff --git a/glabels/icons/24x24/actions/glabels-align-text-left.svg b/glabels/icons/24x24/actions/glabels-align-text-left.svg new file mode 100644 index 0000000..8ab86cf --- /dev/null +++ b/glabels/icons/24x24/actions/glabels-align-text-left.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-align-text-right.png b/glabels/icons/24x24/actions/glabels-align-text-right.png deleted file mode 100644 index a740a6a53747db96333d44155880bad578ce1956..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 375 zcmV--0f_#IP)90u^NA|VWiw^H3hgoydl(p>6nu6#+|YHE|k%Bd + + + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-valign-text-bottom.png b/glabels/icons/24x24/actions/glabels-valign-text-bottom.png deleted file mode 100644 index 5dbc037ff28917f5d85c9d948565c04a3a172a4a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 481 zcmV<70UrK|P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyS_ z6e&6Lm^L-x|*qr}%L^mPy+Z}BR{C$Cl zNN{2(rJxfJ04hj=Qfe+pMAVP1$g-@$)b(-ZzCt-7fy}b3Jb;ICxt#Ogj&hl>Z`oWX zv?wod0TDquoj%lw7m*1D#Ztj0B14xYDx{psMb%u&BHy{MH;l9MA_M|r1`~mZK}=v` z5D|z7%)Za)_jD3wauolZx4f~}ox$9;0mwP?DQ(0u2#RIvFQ7%XPyz^PWQ z%})gy^@eer&q4uU&x6Md9@!8R9`B#0vEd;eW6Y?JrrR>+R+LO0*xl~?mlL$x&xptO zS56R(Mx17|Woij+q=T5Q4kj2BPr#nHw5! + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-valign-text-middle.png b/glabels/icons/24x24/actions/glabels-valign-text-middle.png deleted file mode 100644 index 33220caca9151f64979d6b538fd2cd763fd43565..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 639 zcmV-_0)YLAP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyS_ z6cQk-I-_0y00I9=L_t(Y$K_Q^Z&FbZ{)WET*~X-7SV(UD1N{x^(p=U?U6C|yisd1x zhJ?FB3C1lu{{XD58>2QZ>eWO|x8&ZCNEgN!C@^#AaX~Mo0_EPKD^D`XoRgW%>dl}j(;=K|OVwz-o@f&hq8P$H018DJvA{>vyfGQeYq8Ta5i4RfqT zh7qf_+sCsiumNn&s$gkpvF5ssc%VVM>>Qk7kV`|9nwr(xm8+RbrE)JCjb8ux>qqJI zd0}La>+-YbCsSE;^VSV)JxG9v(C_!5R3AzSL=+m%_e?&YFOKY@mwoV450`F_aro^J zd#_$kr>SAY&~6`3%)Z$?8sl;#vQFpwz6{rO=bHl}(tg+U*c@bYX{ZY@@Xk&;2?`NP z#d5F!pX|@Ld;iW515cDv1Cc@S)wNZ;ee*8(j~0tvL#NZZ(74$=+Kfcj?QnPn^}6FL Zz;8p+ + + + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-valign-text-top.png b/glabels/icons/24x24/actions/glabels-valign-text-top.png deleted file mode 100644 index 2ece60dde80168ff71d84e2624b9a6cb9f401b1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 398 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjjKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*O%l>?NMQuIzUhMMZdI0z@7FO=INqba4#vIR19B zqt{^vk+%Owu2u1P=09*uDe71g%^TRAHz{|aNY#WVLS5aneEk=!oTo7LTm8Ypi%T@L z3UxwT{(N|FmglqF|C;=U|9Y#v&apfC1WAf-Ses%Zvpat7_Ek^vX01BCnmZ#SfW@gv zB!FXKgNldKl2fd!p9+~@-~K9^Z&$4PxzBfQ9Q@~~e)661_xF->c$*^X4m>c<{5z?~ zUHH3fbIGh#mlyDJH;Axu33^Cot8J>RuRQH`&BpA^4ySJ)R@hk-%sE`Kv0`2E1SX4B z#TW9nPx|@i6I;J!nd9XJ7xiC=eiWMCah}~x4j5Prp00i_>zopr0CrHMDgXcg diff --git a/glabels/icons/24x24/actions/glabels-valign-text-top.svg b/glabels/icons/24x24/actions/glabels-valign-text-top.svg new file mode 100644 index 0000000..8dda634 --- /dev/null +++ b/glabels/icons/24x24/actions/glabels-valign-text-top.svg @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/glabels/ui/ObjectEditor.ui b/glabels/ui/ObjectEditor.ui index bfd74fa..ca3e11a 100644 --- a/glabels/ui/ObjectEditor.ui +++ b/glabels/ui/ObjectEditor.ui @@ -35,7 +35,7 @@ - 5 + 0 @@ -66,7 +66,13 @@ - :/icons/24x24/actions/glabels-align-text-left.png:/icons/24x24/actions/glabels-align-text-left.png + :/icons/22x22/actions/glabels-align-text-left.svg:/icons/22x22/actions/glabels-align-text-left.svg + + + + 22 + 22 + true @@ -86,7 +92,13 @@ - :/icons/24x24/actions/glabels-align-text-center.png:/icons/24x24/actions/glabels-align-text-center.png + :/icons/22x22/actions/glabels-align-text-center.svg:/icons/22x22/actions/glabels-align-text-center.svg + + + + 22 + 22 + true @@ -103,7 +115,13 @@ - :/icons/24x24/actions/glabels-align-text-right.png:/icons/24x24/actions/glabels-align-text-right.png + :/icons/22x22/actions/glabels-align-text-right.svg:/icons/22x22/actions/glabels-align-text-right.svg + + + + 22 + 22 + true @@ -131,7 +149,13 @@ - :/icons/24x24/actions/glabels-valign-text-top.png:/icons/24x24/actions/glabels-valign-text-top.png + :/icons/22x22/actions/glabels-valign-text-top.svg:/icons/22x22/actions/glabels-valign-text-top.svg + + + + 22 + 22 + true @@ -151,7 +175,13 @@ - :/icons/24x24/actions/glabels-valign-text-middle.png:/icons/24x24/actions/glabels-valign-text-middle.png + :/icons/22x22/actions/glabels-valign-text-middle.svg:/icons/22x22/actions/glabels-valign-text-middle.svg + + + + 22 + 22 + true @@ -168,7 +198,13 @@ - :/icons/24x24/actions/glabels-valign-text-bottom.png:/icons/24x24/actions/glabels-valign-text-bottom.png + :/icons/22x22/actions/glabels-valign-text-bottom.svg:/icons/22x22/actions/glabels-valign-text-bottom.svg + + + + 22 + 22 + true @@ -1199,16 +1235,7 @@ 15 - - 0 - - - 0 - - - 0 - - + 0