From 60e0d7b32506749f287afec6794e426c5e3cad6a Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sat, 28 Jun 2014 23:12:13 +0200 Subject: [PATCH] Revert "Skinned scrollbars and other small improvements" --- img/contact list icons/contact_dark.png | Bin 744 -> 549 bytes ui/chatArea/chatArea.css | 74 ---------------------- ui/chatArea/scrollBarArrows.xcf | Bin 3062 -> 0 bytes ui/chatArea/scrollBarDownArrow.png | Bin 233 -> 0 bytes ui/chatArea/scrollBarDownArrowHover.png | Bin 228 -> 0 bytes ui/chatArea/scrollBarDownArrowPressed.png | Bin 228 -> 0 bytes ui/chatArea/scrollBarHandle.png | Bin 327 -> 0 bytes ui/chatArea/scrollBarUpArrow.png | Bin 236 -> 0 bytes ui/chatArea/scrollBarUpArrowHover.png | Bin 217 -> 0 bytes ui/chatArea/scrollBarUpArrowPressed.png | Bin 217 -> 0 bytes widget/form/chatform.cpp | 27 ++------ widget/form/groupchatform.cpp | 31 +-------- 12 files changed, 5 insertions(+), 127 deletions(-) delete mode 100644 ui/chatArea/chatArea.css delete mode 100644 ui/chatArea/scrollBarArrows.xcf delete mode 100644 ui/chatArea/scrollBarDownArrow.png delete mode 100644 ui/chatArea/scrollBarDownArrowHover.png delete mode 100644 ui/chatArea/scrollBarDownArrowPressed.png delete mode 100644 ui/chatArea/scrollBarHandle.png delete mode 100644 ui/chatArea/scrollBarUpArrow.png delete mode 100644 ui/chatArea/scrollBarUpArrowHover.png delete mode 100644 ui/chatArea/scrollBarUpArrowPressed.png diff --git a/img/contact list icons/contact_dark.png b/img/contact list icons/contact_dark.png index 584a4669e5fc03f8021187a32de68d72dceeb8ca..be08811bce0b5b8fe650c629ad0ad21d9bf54a63 100644 GIT binary patch delta 476 zcmV<20VDqC1*HU#Q-2!_GY|}Ze(?YR0kTO%K~zY`y_P+S!!QtqCvMyYRJaKNK^iwH z0&!yqxJVJ)r&OIKjr-ig5VWPi%_4M@fNMkAT)+pIEg~=3T}QI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d$P|7>?s`b#?WR^6!2JP16FQ0N{BZ-rwINofXTnplMpq zFO>BkB!5l6+Dy}g|G>?_&1Q4$E$C;kQ?-uctR3t)&P+860B>(^8yk71EY>iL)L<~! z7 QWidget > QWidget { - background: transparent; -} - -QScrollBar:vertical { - background: white; - width: 10px; - margin: 12px 0 12px 0; -} - -QScrollBar::handle:vertical { - background: #d1d1d1; - min-height: 20px; -} - -QScrollBar::handle:vertical:hover { - background: #e3e3e3; -} - -QScrollBar::handle:vertical:pressed { - background: #b1b1b1; -} - -QScrollBar::add-line:vertical { - background: url("ui/chatArea/scrollBarDownArrow.png") center; - height: 10px; - subcontrol-position: bottom; - subcontrol-origin: margin; -} - -QScrollBar::add-line:vertical:hover { - background: url("ui/chatArea/scrollBarDownArrowHover.png") center; -} - -QScrollBar::add-line:vertical:pressed { - background: url("ui/chatArea/scrollBarDownArrowPressed.png") center; -} - -QScrollBar::sub-line:vertical { - background: url("ui/chatArea/scrollBarUpArrow.png") center; - height: 10px; - subcontrol-position: top; - subcontrol-origin: margin; -} - -QScrollBar::sub-line:vertical:hover { - background: url("ui/chatArea/scrollBarUpArrowHover.png") center; -} - -QScrollBar::sub-line:vertical:pressed { - background: url("ui/chatArea/scrollBarUpArrowPressed.png") center; - -} - -QScrollBar:QScrollBar::down-arrow:vertical { - width: 10; - height: 10px; - background: white; -} - -QScrollBar:QScrollBar::up-arrow:vertical { - width: 10px; - height: 10px; - background: white; -} - -QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { - background: none; -} \ No newline at end of file diff --git a/ui/chatArea/scrollBarArrows.xcf b/ui/chatArea/scrollBarArrows.xcf deleted file mode 100644 index 0e3279deed5a1fb129c325d837116fc360a77420..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3062 zcmd5;%}&%%6h8fD7>UZLD-*kL0VZRHxH7{6aHsE}fuU2H4AaRJ6yihZPIo>-AAyZ4 z64IBj@8Ce|_qDgAjTkq;aFToPch0@1z4v_W*ZRT!#621e-C;2D1h%Le@k2CCL)SrD z*!n8M2782NqV>?8D9m+_vHmH>2R<&_4feNvuj@~PU4#Vlnyf?z$0N^;!cnlhy0|j* z2jM83x+}%do%%c5ZtrEUuq(itnp#Eb&K0TEy!&s!)T3y!JqX6WyH?!`!Q-ofD%L$5 z2M2C29_)D$^TXjV@(wOH$n3vEWu%$PIw;e=i5No>t1n{zM0vlX_IuSV#)=5mwS72o zCsQwqyrPsgLM(rdwxBSVwG_r6q=9Q_yi|qTHGHpzmumPvFt1yg15o8x)bl#Z^tTFB zTgF=beKV$y>FY8};y4jYwAhj?iS;;3#1JDk=$Z61v0{y$9bY7ZK9hJko=2u3+Lj|) zV#{nZ&o@zmS(4}6Z?>N6dA5%8WT!-@*mbs%oB3=*ocHjcfSubMIQ4SiCRrUj`fNlo>%BsC?e zsYwr{rX)4BQ;>>2lXN+qN9K)@Y8*~jjk`dj&W)62{ZgPtqxHKPvpEME4Ls>uVu_WQ zz=k-94y;Kl$t1DaEhBP$t8R>nrQPt;_Pj*?1{5u5Z188soQkg7spwYg+wRJ)54D&Kj((81Z62z4>rph7CG!~v9k z8cI>2tcAkjyO2O}w+x=WDo*hMEEv7i%)9WCJ?9=vYrRvT+A_4V^`RMSh4ecVK4_p& z3CSnqk$jda2|iQuSt=;_Ovxv;6@1Pi^XB-p$R`VO7ntPljj}fWU<<1;*9ioB{An-{yUtbD$i^Rl3f6)E diff --git a/ui/chatArea/scrollBarDownArrow.png b/ui/chatArea/scrollBarDownArrow.png deleted file mode 100644 index 0650e79441c562eb5e6aa406194ce542042b1c5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 233 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4u_bxCyDx`7I;J! zGca%qgD@k*tT_@uLG}_)Usv{fY%;=HdUrO7Z37CGdAc};NL+61HRL)Jr!-jKR<_RRKhSr7msrAs{cQ{z{xV$Sz7Tv#ErtDnm{r-UW|X?;&s diff --git a/ui/chatArea/scrollBarDownArrowHover.png b/ui/chatArea/scrollBarDownArrowHover.png deleted file mode 100644 index 54ae2cf6a77adb083ee4da15fc8ae72f78ed103d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4u_bxCyDx`7I;J! zGca%qgD@k*tT_@uLG}_)Usv{fY%(J3%I#@ti9n%3PZ!4!iOa418+n@@1X!NOZ`r7O zLqRxLcu5JnA%_q5?T*REnVuY<{Ptd^pLhf4u_bxCyDx`7I;J! zGca%qgD@k*tT_@uLG}_)Usv{fY%;<|vJWfY{{#vZdb&7lYjWQfx`y?k)`fL2$v|<&%LToCO|{ z#S9GG!XV7ZFl&wkP>{XE)7O>#9-EAi3FjK?Z>B&Y$r9Iy66gHf+|;}h2Ir#G#FEq$ zh4Rdj3J z5S4KDeN}?;%S5{iOxnw~e)`IC|JB5wvS-dq1Si&68b1A2xVrdMkG+@0!xmvbi-#{O zI<_?b^p+3KcaZJOW?tnHGjj=_M*5+kAaS?*D|8Fkro~^7z2UiwX%7RliHfm!zxpen P(-}Nn{an^LB{Ts58mx2D diff --git a/ui/chatArea/scrollBarUpArrow.png b/ui/chatArea/scrollBarUpArrow.png deleted file mode 100644 index fcf1b9fad5cafe881f601f9ebc38533774020bd6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4u_bxCyDx`7I;J! zGca%qgD@k*tT_@uLG}_)Usv{fY%;={=99m?-3k<{^mK6yk+|I2@5ps1fX5}iO5yk- zYwazzG5uG$%2sAnDVb~5Fvs7|JM^JVg7qDrf!iF_z@yDI+f$?)Ed7)>ya_vP_CTO8 zcw=tsTIP3|AGy{{+P6&pfTrmDN#_{Ew#h|k{pUT9JHL+cxYtMBm8RwU8MODmluCGH bf0;crQs+Q)-SQtmM=*H0`njxgN@xNAf4u_bxCyDx`7I;J! zGca%qgD@k*tT_@uLG}_)Usv{fY%(HjW}g>)J`EH~^K@|xk+|I2w^OjefQLn#|Lcqf z0j32O%gX{wih3t>oafI`I-B|2ZGvLv+Bi?&y0(FR&)ZT#kKVsxs%Nj2 zJ<`>d3VwS3i;$}Bfe1nO-LbtB%>)-rHes~Be}<3ak1*elLdBLhVIuZG8yP%Z{an^L HB{Ts5F40GZ diff --git a/ui/chatArea/scrollBarUpArrowPressed.png b/ui/chatArea/scrollBarUpArrowPressed.png deleted file mode 100644 index 401f903ce3ac95fb265deb836d9e9a8e7d096b53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 217 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4u_bxCyDx`7I;J! zGca%qgD@k*tT_@uLG}_)Usv{fY%;=z3X^O;Xaj}PJY5_^Brdo1?G$V<;9(Kx|2m^V zfN6on@-pq~%&ikU&hzIeoy~miHbF6S@|LHS{+?SbZJeiXUE9FE=WVH=NAF)T)w9>i z9_eaJ1wXz2MMzcmK!l+C?%3XmW`YYQn=o46Kf}lIN0{&FHW|A#j~Zj3jSQZyelF{r G5}E*N97U)A diff --git a/widget/form/chatform.cpp b/widget/form/chatform.cpp index 4ed5f7efb..fe9b904ec 100644 --- a/widget/form/chatform.cpp +++ b/widget/form/chatform.cpp @@ -29,38 +29,15 @@ ChatForm::ChatForm(Friend* chatFriend) avatar->setPixmap(*chatFriend->widget->avatar.pixmap()); chatAreaWidget->setLayout(mainChatLayout); - QString chatAreaStylesheet = ""; - try - { - QFile f("ui/chatArea/chatArea.css"); - f.open(QFile::ReadOnly | QFile::Text); - QTextStream chatAreaStylesheetStream(&f); - chatAreaStylesheet = chatAreaStylesheetStream.readAll(); - } - catch (int e) {} - chatArea->setStyleSheet(chatAreaStylesheet); chatArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); chatArea->setWidgetResizable(true); chatArea->setContextMenuPolicy(Qt::CustomContextMenu); - chatArea->setFrameStyle(QFrame::NoFrame); - mainChatLayout->setColumnStretch(1,1); mainChatLayout->setSpacing(10); footButtonsSmall->setSpacing(2); - QString msgEditStylesheet = ""; - try - { - QFile f("ui/msgEdit/msgEdit.css"); - f.open(QFile::ReadOnly | QFile::Text); - QTextStream msgEditStylesheetStream(&f); - msgEditStylesheet = msgEditStylesheetStream.readAll(); - } - catch (int e) {} - msgEdit->setStyleSheet(msgEditStylesheet); msgEdit->setFixedHeight(50); - msgEdit->setFrameStyle(QFrame::NoFrame); QString sendButtonStylesheet = ""; try @@ -73,6 +50,10 @@ ChatForm::ChatForm(Friend* chatFriend) catch (int e) {} sendButton->setStyleSheet(sendButtonStylesheet); + QPalette toxgreen; + toxgreen.setColor(QPalette::Button, QColor(107,194,96)); // Tox Green + + QString fileButtonStylesheet = ""; try { diff --git a/widget/form/groupchatform.cpp b/widget/form/groupchatform.cpp index 27d7aa99c..236c9fce6 100644 --- a/widget/form/groupchatform.cpp +++ b/widget/form/groupchatform.cpp @@ -39,39 +39,9 @@ GroupChatForm::GroupChatForm(Group* chatGroup) namesList->setFont(small); chatAreaWidget->setLayout(mainChatLayout); - QString chatAreaStylesheet = ""; - try - { - QFile f("ui/chatArea/chatArea.css"); - f.open(QFile::ReadOnly | QFile::Text); - QTextStream chatAreaStylesheetStream(&f); - chatAreaStylesheet = chatAreaStylesheetStream.readAll(); - } - catch (int e) {} - chatArea->setStyleSheet(chatAreaStylesheet); chatArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); chatArea->setWidgetResizable(true); chatArea->setContextMenuPolicy(Qt::CustomContextMenu); - chatArea->setFrameStyle(QFrame::NoFrame); - - mainChatLayout->setColumnStretch(1,1); - mainChatLayout->setSpacing(10); - - - QString msgEditStylesheet = ""; - try - { - QFile f("ui/msgEdit/msgEdit.css"); - f.open(QFile::ReadOnly | QFile::Text); - QTextStream msgEditStylesheetStream(&f); - msgEditStylesheet = msgEditStylesheetStream.readAll(); - } - catch (int e) {} - msgEdit->setObjectName("group"); - msgEdit->setStyleSheet(msgEditStylesheet); - msgEdit->setFixedHeight(50); - msgEdit->setFrameStyle(QFrame::NoFrame); - mainChatLayout->setColumnStretch(1,1); mainChatLayout->setHorizontalSpacing(10); @@ -86,6 +56,7 @@ GroupChatForm::GroupChatForm(Group* chatGroup) catch (int e) {} sendButton->setStyleSheet(sendButtonStylesheet); + msgEdit->setFixedHeight(50); sendButton->setFixedSize(50, 50); main->setLayout(mainLayout);