148 lines
4.4 KiB
Plaintext
148 lines
4.4 KiB
Plaintext
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
Telegram Desktop is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
It is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
|
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
|
*/
|
|
using "basic.style";
|
|
using "history/history.style";
|
|
using "ui/widgets/widgets.style";
|
|
using "media/view/mediaview.style";
|
|
|
|
OverviewFileLayout {
|
|
maxWidth: pixels;
|
|
songPadding: margins;
|
|
songThumbSize: pixels;
|
|
songNameTop: pixels;
|
|
songStatusTop: pixels;
|
|
songIconBg: color;
|
|
songOverBg: color;
|
|
songPause: icon;
|
|
songPauseSelected: icon;
|
|
songPlay: icon;
|
|
songPlaySelected: icon;
|
|
songCancel: icon;
|
|
songCancelSelected: icon;
|
|
songDownload: icon;
|
|
songDownloadSelected: icon;
|
|
|
|
filePadding: margins;
|
|
fileThumbSize: pixels;
|
|
fileNameTop: pixels;
|
|
fileStatusTop: pixels;
|
|
fileDateTop: pixels;
|
|
}
|
|
|
|
overviewLeftMin: 28px;
|
|
overviewLeftMax: 42px;
|
|
|
|
overviewCheckPressedSize: 0.8;
|
|
overviewCheck: RoundCheckbox(defaultRoundCheckbox) {
|
|
bgInactive: overviewCheckBg;
|
|
bgActive: overviewCheckBgActive;
|
|
border: overviewCheckBorder;
|
|
size: 29px;
|
|
sizeSmall: 0.3;
|
|
check: icon {{ "overview_photo_check", overviewCheckFgActive, point(4px, 8px) }};
|
|
}
|
|
overviewCheckSkip: 5px;
|
|
|
|
overviewPhotoSkip: 10px;
|
|
overviewPhotoBg: windowBgOver;
|
|
overviewPhotoMinSize: minPhotoSize;
|
|
overviewVideoBg: imageBg;
|
|
|
|
overviewFileThumbBg: imageBg;
|
|
overviewFileChecked: overviewCheckBgActive;
|
|
overviewFileCheck: overviewCheckBg;
|
|
overviewFileExtPadding: 5px;
|
|
overviewFileExtTop: 24px;
|
|
overviewFileExtFg: windowFgActive;
|
|
overviewFileExtFont: font(18px semibold);
|
|
|
|
overviewSongPause: icon {{ "playlist_pause", msgInBg }};
|
|
overviewSongPauseSelected: icon {{ "playlist_pause", msgInBgSelected }};
|
|
overviewSongPlay: icon {{ "playlist_play", msgInBg }};
|
|
overviewSongPlaySelected: icon {{ "playlist_play", msgInBgSelected }};
|
|
overviewSongCancel: icon {{ "playlist_cancel", msgInBg }};
|
|
overviewSongCancelSelected: icon {{ "playlist_cancel", msgInBgSelected }};
|
|
overviewSongDownload: icon {{ "playlist_download", msgInBg }};
|
|
overviewSongDownloadSelected: icon {{ "playlist_download", msgInBgSelected }};
|
|
overviewFileLayout: OverviewFileLayout {
|
|
maxWidth: 520px;
|
|
songPadding: margins(17px, 7px, 10px, 6px);
|
|
songThumbSize: 36px;
|
|
songNameTop: 7px;
|
|
songStatusTop: 25px;
|
|
songIconBg: msgFileInBg;
|
|
songOverBg: msgFileInBgOver;
|
|
songPause: overviewSongPause;
|
|
songPauseSelected: overviewSongPauseSelected;
|
|
songPlay: overviewSongPlay;
|
|
songPlaySelected: overviewSongPlaySelected;
|
|
songCancel: overviewSongCancel;
|
|
songCancelSelected: overviewSongCancelSelected;
|
|
songDownload: overviewSongDownload;
|
|
songDownloadSelected: overviewSongDownloadSelected;
|
|
|
|
filePadding: margins(0px, 3px, 16px, 3px);
|
|
fileThumbSize: 70px;
|
|
fileNameTop: 7px;
|
|
fileStatusTop: 24px;
|
|
fileDateTop: 49px;
|
|
}
|
|
|
|
overviewLoader: size(34px, 14px);
|
|
overviewLoaderPoint: size(4px, 4px);
|
|
overviewLoaderSkip: 4px;
|
|
|
|
playlistHoverBg: windowBgOver;
|
|
playlistPadding: 10px;
|
|
|
|
linksSearchTop: 30px;
|
|
linksMaxWidth: 520px;
|
|
linksLetterFg: windowFgActive;
|
|
linksLetterFont: font(24px);
|
|
linksMargin: margins(0px, 7px, 0px, 5px);
|
|
linksTextFg: windowFg;
|
|
linksTextTop: 6px;
|
|
linksBorder: 1px;
|
|
linksBorderFg: shadowFg;
|
|
linksDateColor: windowSubTextFg;
|
|
linksDateMargin: margins(0px, 15px, 0px, 2px);
|
|
linksPhotoSize: 46px;
|
|
linksPhotoPadding: 12px;
|
|
overviewLinksCheck: icon {
|
|
{ "overview_links_check_bg", overviewCheckBg },
|
|
{ "overview_links_check", overviewCheckFg, point(4px, 5px) },
|
|
};
|
|
overviewLinksChecked: icon {
|
|
{ "overview_links_check_bg", overviewCheckBgActive },
|
|
{ "overview_links_check", overviewCheckFgActive, point(4px, 5px) },
|
|
};
|
|
|
|
overviewFilter: FlatInput(defaultFlatInput) {
|
|
font: font(fsize);
|
|
phColor: placeholderFg;
|
|
phFocusColor: placeholderFgActive;
|
|
icon: fieldSearchIcon;
|
|
|
|
width: 240px;
|
|
height: 32px;
|
|
textMrg: margins(32px, 3px, 32px, 3px);
|
|
}
|