/* 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-2016 John Preston, https://desktop.telegram.org */ using "basic.style"; LabelSimple { font: font; maxWidth: pixels; textFg: color; } IconButton { width: pixels; height: pixels; icon: icon; iconOver: icon; iconPosition: point; iconPositionDown: point; duration: int; } Shadow { left: icon; topLeft: icon; top: icon; topRight: icon; right: icon; bottomRight: icon; bottom: icon; bottomLeft: icon; extend: margins; fallback: color; } MaskButton { width: pixels; height: pixels; bg: color; icon: icon; iconBg: color; iconBgOver: color; iconPosition: point; iconPositionDown: point; duration: int; } MediaSlider { width: pixels; activeFg: color; inactiveFg: color; activeFgOver: color; inactiveFgOver: color; activeFgDisabled: color; inactiveFgDisabled: color; seekSize: size; duration: int; } FilledSlider { fullWidth: pixels; lineWidth: pixels; activeFg: color; inactiveFg: color; disabledFg: color; duration: int; } RoundImageCheckbox { imageRadius: pixels; imageSmallRadius: pixels; selectWidth: pixels; selectFg: color; selectDuration: int; checkBorder: color; checkBg: color; checkRadius: pixels; checkSmallRadius: pixels; checkIcon: icon; } MultiSelectItem { padding: margins; maxWidth: pixels; height: pixels; font: font; textBg: color; textFg: color; textActiveBg: color; textActiveFg: color; deleteFg: color; deleteLeft: pixels; deleteStroke: pixels; duration: int; minScale: double; } MultiSelect { bg: color; padding: margins; maxHeight: pixels; scroll: flatScroll; item: MultiSelectItem; itemSkip: pixels; field: InputField; fieldMinWidth: pixels; fieldIcon: icon; fieldIconSkip: pixels; fieldCancel: IconButton; fieldCancelSkip: pixels; } Menu { skip: pixels; itemBg: color; itemBgOver: color; itemFg: color; itemFgOver: color; itemFgDisabled: color; itemFgShortcut: color; itemFgShortcutOver: color; itemFgShortcutDisabled: color; itemPadding: margins; itemIconPosition: point; itemFont: font; separatorPadding: margins; separatorWidth: pixels; separatorFg: color; arrow: icon; widthMin: pixels; widthMax: pixels; } PanelAnimation { startWidth: double; widthDuration: double; startHeight: double; heightDuration: double; startOpacity: double; opacityDuration: double; startFadeTop: double; fadeHeight: double; fadeOpacity: double; fadeBg: color; shadow: Shadow; } PopupMenu { shadow: Shadow; scrollPadding: margins; animation: PanelAnimation; menu: Menu; duration: int; showDuration: int; } InnerDropdown { padding: margins; shadow: Shadow; animation: PanelAnimation; duration: int; showDuration: int; width: pixels; bg: color; scroll: flatScroll; scrollMargin: margins; scrollPadding: margins; } DropdownMenu { wrap: InnerDropdown; menu: Menu; } defaultLabelSimple: LabelSimple { font: normalFont; maxWidth: 0px; textFg: windowTextFg; } defaultIconButton: IconButton { iconPosition: point(-1px, -1px); iconPositionDown: point(-1px, -1px); } defaultMaskButton: MaskButton { iconPosition: point(-1px, -1px); iconPositionDown: point(-1px, -1px); duration: 150; } widgetSlideDuration: 200; widgetFadeDuration: 200; fieldSearchIcon: icon {{ "box_search", #aaaaaa, point(9px, 8px) }}; boxFieldSearchIcon: icon {{ "box_search", #aaaaaa, point(10px, 9px) }}; discreteSliderHeight: 39px; discreteSliderTop: 5px; discreteSliderSkip: 3px; discreteSliderThickness: 3px; discreteSliderActiveFg: #4bb5e7; discreteSliderInactiveFg: #e1eaef; discreteSliderLabelTop: 17px; discreteSliderLabelFont: normalFont; discreteSliderLabelFg: #1485c2; discreteSliderDuration: 200; defaultRoundShadow: Shadow { left: icon {{ "round_shadow_left", windowShadowFg }}; topLeft: icon {{ "round_shadow_top_left", windowShadowFg }}; top: icon {{ "round_shadow_top", windowShadowFg }}; topRight: icon {{ "round_shadow_top_left-flip_horizontal", windowShadowFg }}; right: icon {{ "round_shadow_left-flip_horizontal", windowShadowFg }}; bottomRight: icon {{ "round_shadow_bottom_left-flip_horizontal", windowShadowFg }}; bottom: icon {{ "round_shadow_bottom", windowShadowFg }}; bottomLeft: icon {{ "round_shadow_bottom_left", windowShadowFg }}; extend: margins(3px, 2px, 3px, 4px); fallback: windowShadowFgFallback; } defaultEmptyShadow: Shadow { fallback: windowBg; } defaultPanelAnimation: PanelAnimation { startWidth: 0.5; widthDuration: 0.6; startHeight: 0.3; heightDuration: 0.9; startOpacity: 0.2; opacityDuration: 0.3; startFadeTop: 0.; fadeHeight: 0.2; fadeOpacity: 1.0; fadeBg: menuBg; shadow: defaultRoundShadow; } defaultMenuArrow: icon {{ "dropdown_submenu_arrow", #373737 }}; defaultMenu: Menu { skip: 0px; itemBg: windowBg; itemBgOver: windowOverBg; itemFg: windowTextFg; itemFgOver: windowTextFg; itemFgDisabled: #cccccc; itemFgShortcut: #999999; itemFgShortcutOver: #7c99b2; itemFgShortcutDisabled: #cccccc; itemIconPosition: point(0px, 0px); itemPadding: margins(17px, 8px, 17px, 7px); itemFont: normalFont; separatorPadding: margins(0px, 5px, 0px, 5px); separatorWidth: 1px; separatorFg: #f1f1f1; arrow: defaultMenuArrow; widthMin: 180px; widthMax: 300px; } defaultPopupMenu: PopupMenu { shadow: defaultRoundShadow; animation: defaultPanelAnimation; scrollPadding: margins(0px, 8px, 0px, 8px); menu: defaultMenu; duration: 150; showDuration: 200; } defaultInnerDropdown: InnerDropdown { padding: margins(10px, 10px, 10px, 10px); shadow: defaultRoundShadow; animation: defaultPanelAnimation; duration: 150; showDuration: 200; bg: menuBg; scroll: solidScroll; } defaultDropdownMenu: DropdownMenu { wrap: InnerDropdown(defaultInnerDropdown) { scrollPadding: margins(0px, 8px, 0px, 8px); } menu: defaultMenu; } historyToDown: icon { { "history_down_shadow", #00000040 }, { "history_down_circle", #ffffff, point(4px, 4px) }, }; contactsAddIcon: icon { { "history_down_shadow", #00000020 }, { "history_down_circle", activeButtonBg, point(4px, 4px) }, { "contacts_add", activeButtonFg, point(18px, 18px) }, }; contactsAddIconOver: icon { { "history_down_shadow", #00000020 }, { "history_down_circle", activeButtonBgOver, point(4px, 4px) }, { "contacts_add", activeButtonFg, point(18px, 18px) }, };