Dialogs filter input field without search icon.

This commit is contained in:
John Preston 2016-11-09 11:35:41 +03:00
parent 8ff3779c9a
commit 45ce0ecb1f
4 changed files with 16 additions and 4 deletions

View File

@ -279,7 +279,7 @@ shadowToggleDuration: 200;
slideDuration: 240;
slideShift: 100px;
slideFadeOutBg: #0000003c;
slideShadow: icon {{ "slide_shadow", #000000 }};
slideShadow: icon {{ "slide_shadow", windowShadowFg }};
btnYesColor: #0080c0;
btnYesHover: #0073ad;

View File

@ -97,11 +97,10 @@ dialogsFilter: flatInput(inpDefGray) {
bgColor: #f2f2f2;
phColor: #949494;
phFocusColor: #a4a4a4;
icon: fieldSearchIcon;
width: 240px;
height: 32px;
textMrg: margins(32px, 3px, 32px, 3px);
textMrg: margins(12px, 3px, 12px, 3px);
}
dialogsCancelSearch: IconButton(dialogsMenuToggle) {
icon: icon {{ "dialogs_cancel_search", dialogsMenuIconFg, point(0px, 1px) }};

View File

@ -20,6 +20,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
*/
using "basic.style";
using "history/history.style";
using "ui/widgets/widgets.style";
using "media/view/mediaview.style";
OverviewFileLayout {
@ -116,3 +117,15 @@ overviewLinksChecked: icon {
{ "overview_links_check_bg", overviewCheckedBg },
{ "overview_links_check", #ffffff, point(4px, 5px) },
};
overviewFilter: flatInput(inpDefGray) {
font: font(fsize);
bgColor: #f2f2f2;
phColor: #949494;
phFocusColor: #a4a4a4;
icon: fieldSearchIcon;
width: 240px;
height: 32px;
textMrg: margins(32px, 3px, 32px, 3px);
}

View File

@ -54,7 +54,7 @@ OverviewInner::OverviewInner(OverviewWidget *overview, ScrollArea *scroll, PeerD
, _history(App::history(_peer->id))
, _channel(peerToChannel(_peer->id))
, _rowWidth(st::msgMinWidth)
, _search(this, st::dialogsFilter, lang(lng_dlg_filter))
, _search(this, st::overviewFilter, lang(lng_dlg_filter))
, _cancelSearch(this, st::dialogsCancelSearch)
, _itemsToBeLoaded(LinksOverviewPerPage * 2)
, _width(st::windowMinWidth) {