| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605 |
- // This file is part of Desktop App Toolkit,
- // a set of libraries for developing nice desktop applications.
- //
- // For license and copyright information please follow this link:
- // https://github.com/desktop-app/legal/blob/master/LEGAL
- //
- using "ui/basic.style";
- LabelSimple {
- font: font;
- maxWidth: pixels;
- textFg: color;
- }
- FlatLabel {
- margin: margins;
- minWidth: pixels;
- align: align;
- textFg: color;
- maxHeight: pixels;
- style: TextStyle;
- palette: TextPalette;
- }
- LinkButton {
- color: color;
- overColor: color;
- font: font;
- overFont: font;
- padding: margins;
- }
- RippleAnimation {
- color: color;
- showDuration: int;
- hideDuration: int;
- }
- InfiniteRadialAnimation {
- color: color;
- thickness: pixels;
- size: size;
- linearPeriod: int;
- sinePeriod: int;
- sineDuration: int;
- sineShift: int;
- arcMin: double;
- arcMax: double;
- }
- defaultInfiniteRadialAnimation: InfiniteRadialAnimation {
- linearPeriod: 1000;
- sinePeriod: 3000;
- sineDuration: 1000;
- sineShift: 1500;
- arcMin: 0.0625;
- arcMax: 0.75;
- }
- FlatButton {
- color: color;
- overColor: color;
- bgColor: color;
- overBgColor: color;
- width: pixels;
- height: pixels;
- textTop: pixels;
- font: font;
- overFont: font;
- ripple: RippleAnimation;
- }
- RoundButton {
- textFg: color;
- textFgOver: color;
- textBg: color; // rect of textBg with rounded rect of textBgOver upon it
- textBgOver: color;
- numbersTextFg: color;
- numbersTextFgOver: color;
- numbersSkip: pixels;
- width: pixels;
- height: pixels;
- radius: pixels;
- padding: margins;
- textTop: pixels;
- icon: icon;
- iconOver: icon;
- iconPosition: point;
- style: TextStyle;
- ripple: RippleAnimation;
- }
- Toggle {
- toggledBg: color;
- toggledFg: color;
- untoggledBg: color;
- untoggledFg: color;
- duration: int;
- border: pixels;
- shift: pixels;
- diameter: pixels;
- width: pixels;
- xsize: pixels;
- vsize: pixels;
- vshift: pixels;
- stroke: pixels;
- lockIcon: icon;
- rippleAreaPadding: pixels;
- }
- Check {
- bg: color;
- untoggledFg: color;
- toggledFg: color;
- diameter: pixels;
- thickness: pixels;
- icon: icon;
- duration: int;
- rippleAreaPadding: pixels;
- }
- Radio {
- bg: color;
- untoggledFg: color;
- toggledFg: color;
- diameter: pixels;
- thickness: pixels;
- outerSkip: pixels;
- skip: pixels;
- duration: int;
- rippleAreaPadding: pixels;
- }
- Checkbox {
- textFg: color;
- textFgActive: color;
- width: pixels;
- margin: margins;
- textPosition: point;
- checkPosition: point;
- style: TextStyle;
- rippleAreaPosition: point;
- rippleBg: color;
- rippleBgActive: color;
- ripple: RippleAnimation;
- disabledOpacity: double;
- }
- ScrollArea {
- bg: color;
- bgOver: color;
- barBg: color;
- barBgOver: color;
- barHidden: bool;
- round: pixels;
- width: pixels;
- minHeight: pixels;
- deltax: pixels;
- deltat: pixels;
- deltab: pixels;
- topsh: pixels;
- bottomsh: pixels;
- shColor: color;
- duration: int;
- hiding: int;
- }
- Shadow {
- left: icon;
- topLeft: icon;
- top: icon;
- topRight: icon;
- right: icon;
- bottomRight: icon;
- bottom: icon;
- bottomLeft: icon;
- extend: margins;
- fallback: color;
- }
- PanelAnimation {
- startWidth: double;
- widthDuration: double;
- startHeight: double;
- heightDuration: double;
- startOpacity: double;
- opacityDuration: double;
- startFadeTop: double;
- fadeHeight: double;
- fadeOpacity: double;
- fadeBg: color;
- shadow: Shadow;
- }
- MenuSeparator {
- padding: margins;
- width: pixels;
- fg: color;
- }
- Menu {
- skip: pixels;
- itemBg: color;
- itemBgOver: color;
- itemFg: color;
- itemFgOver: color;
- itemFgDisabled: color;
- itemFgShortcut: color;
- itemFgShortcutOver: color;
- itemFgShortcutDisabled: color;
- itemPadding: margins;
- itemRightSkip: pixels;
- itemIconPosition: point;
- itemStyle: TextStyle;
- itemToggle: Toggle;
- itemToggleOver: Toggle;
- itemToggleShift: pixels;
- separator: MenuSeparator;
- arrow: icon;
- widthMin: pixels;
- widthMax: pixels;
- ripple: RippleAnimation;
- }
- PopupMenu {
- shadow: Shadow;
- scrollPadding: margins;
- maxHeight: pixels;
- animation: PanelAnimation;
- menu: Menu;
- radius: pixels;
- duration: int;
- showDuration: int;
- }
- InputField {
- textBg: color;
- textBgActive: color; // Used only with borderRadius.
- textFg: color;
- textMargins: margins;
- textAlign: align;
- placeholderFg: color;
- placeholderFgActive: color;
- placeholderFgError: color;
- placeholderMargins: margins;
- placeholderAlign: align;
- placeholderScale: double;
- placeholderShift: pixels;
- placeholderFont: font;
- duration: int;
- borderFg: color;
- borderFgActive: color;
- borderFgError: color;
- border: pixels;
- borderActive: pixels;
- borderRadius: pixels;
- borderDenominator: int;
- style: TextStyle;
- menu: PopupMenu;
- width: pixels;
- heightMin: pixels;
- heightMax: pixels;
- widthMin: pixels;
- }
- OutlineButton {
- textBg: color;
- textBgOver: color;
- textFg: color;
- textFgOver: color;
- font: font;
- padding: margins;
- ripple: RippleAnimation;
- }
- IconButton {
- width: pixels;
- height: pixels;
- icon: icon;
- iconOver: icon;
- iconPosition: point;
- duration: int;
- rippleAreaPosition: point;
- rippleAreaSize: pixels;
- ripple: RippleAnimation;
- }
- IconButtonWithText {
- iconButton: IconButton;
- height: pixels;
- textFg: color;
- textFgOver: color;
- textPadding: margins;
- textAlign: align;
- font: font;
- }
- MediaSlider {
- width: pixels;
- activeFg: color;
- inactiveFg: color;
- activeFgOver: color;
- inactiveFgOver: color;
- activeFgDisabled: color;
- inactiveFgDisabled: color;
- receivedTillFg: color;
- seekSize: size;
- duration: int;
- }
- FilledSlider {
- fullWidth: pixels;
- lineWidth: pixels;
- activeFg: color;
- inactiveFg: color;
- disabledFg: color;
- duration: int;
- }
- RoundCheckbox {
- border: color;
- bgInactive: color;
- bgActive: color;
- width: pixels;
- size: pixels;
- sizeSmall: double;
- duration: int;
- bgDuration: double;
- fgDuration: double;
- check: icon;
- }
- RoundImageCheckbox {
- selectExtendTwice: pixels;
- imageRadius: pixels;
- imageSmallRadius: pixels;
- selectWidth: pixels;
- selectFg: color;
- selectDuration: int;
- check: RoundCheckbox;
- }
- CrossAnimation {
- fg: color;
- size: pixels;
- skip: pixels;
- stroke: double;
- minScale: double;
- }
- CrossButton {
- width: pixels;
- height: pixels;
- cross: CrossAnimation;
- crossFg: color;
- crossFgOver:color;
- crossPosition: point;
- duration: int;
- loadingPeriod: int;
- ripple: RippleAnimation;
- }
- CrossLineAnimation {
- fg: color;
- icon: icon;
- startPosition: point;
- endPosition: point;
- stroke: pixels;
- strokeDenominator: int;
- }
- ArcsAnimation {
- fg: color;
- stroke: pixels;
- space: pixels;
- duration: int;
- deltaAngle: int;
- deltaHeight: pixels;
- deltaWidth: pixels;
- startHeight: pixels;
- startWidth: pixels;
- }
- MultiSelectItem {
- padding: margins;
- maxWidth: pixels;
- height: pixels;
- style: TextStyle;
- textBg: color;
- textFg: color;
- textActiveBg: color;
- textActiveFg: color;
- duration: int;
- deleteFg: color;
- deleteCross: CrossAnimation;
- minScale: double;
- }
- MultiSelect {
- bg: color;
- padding: margins;
- maxHeight: pixels;
- scroll: ScrollArea;
- item: MultiSelectItem;
- itemSkip: pixels;
- field: InputField;
- fieldMinWidth: pixels;
- fieldIcon: icon;
- fieldIconSkip: pixels;
- fieldCancel: CrossButton;
- fieldCancelSkip: pixels;
- }
- CallButton {
- button: IconButton;
- bg: color;
- bgSize: pixels;
- bgPosition: point;
- angle: double;
- outerRadius: pixels;
- outerBg: color;
- label: FlatLabel;
- cornerButtonPosition: point;
- cornerButtonBorder: pixels;
- }
- InnerDropdown {
- padding: margins;
- shadow: Shadow;
- animation: PanelAnimation;
- duration: int;
- showDuration: int;
- width: pixels;
- bg: color;
- scroll: ScrollArea;
- scrollMargin: margins;
- scrollPadding: margins;
- }
- DropdownMenu {
- wrap: InnerDropdown;
- menu: Menu;
- }
- Tooltip {
- textBg: color;
- textFg: color;
- textStyle: TextStyle;
- textBorder: color;
- textPadding: margins;
- shift: point;
- skip: pixels;
- widthMax: pixels;
- linesMax: int;
- }
- ImportantTooltip {
- bg: color;
- margin: margins;
- padding: margins;
- radius: pixels;
- arrow: pixels;
- arrowSkipMin: pixels;
- arrowSkip: pixels;
- shift: pixels;
- duration: int;
- }
- SettingsButton {
- textFg: color;
- textFgOver: color;
- textBg: color;
- textBgOver: color;
- style: TextStyle;
- rightLabel: FlatLabel;
- height: pixels;
- padding: margins;
- iconLeft: pixels;
- toggle: Toggle;
- toggleOver: Toggle;
- toggleSkip: pixels;
- ripple: RippleAnimation;
- }
- SettingsCountButton {
- button: SettingsButton;
- icon: icon;
- iconPosition: point;
- label: FlatLabel;
- labelPosition: point;
- }
- PassportScanRow {
- padding: margins;
- size: pixels;
- textLeft: pixels;
- nameTop: pixels;
- statusTop: pixels;
- border: pixels;
- borderFg: color;
- remove: IconButton;
- restore: RoundButton;
- }
- WindowTitle {
- height: pixels;
- bg: color;
- bgActive: color;
- fg: color;
- fgActive: color;
- shadow: bool;
- oneSideControls: bool;
- style: TextStyle;
- minimize: IconButton;
- minimizeIconActive: icon;
- minimizeIconActiveOver: icon;
- maximize: IconButton;
- maximizeIconActive: icon;
- maximizeIconActiveOver: icon;
- restoreIcon: icon;
- restoreIconOver: icon;
- restoreIconActive: icon;
- restoreIconActiveOver: icon;
- close: IconButton;
- closeIconActive: icon;
- closeIconActiveOver: icon;
- }
- SideBarButton {
- icon: icon;
- iconActive: icon;
- iconPosition: point;
- textTop: pixels;
- textSkip: pixels;
- minTextWidth: pixels;
- minHeight: pixels;
- style: TextStyle;
- badgeStyle: TextStyle;
- badgeSkip: pixels;
- badgeHeight: pixels;
- badgeStroke: pixels;
- badgePosition: point;
- textBg: color;
- textBgActive: color;
- textFg: color;
- textFgActive: color;
- badgeBg: color;
- badgeBgMuted: color;
- badgeFg: color;
- ripple: RippleAnimation;
- }
- Toast {
- style: TextStyle;
- icon: icon;
- iconPosition: point;
- palette: TextPalette;
- padding: margins;
- margin: margins;
- minWidth: pixels;
- maxWidth: pixels;
- durationFadeIn: int;
- durationFadeOut: int;
- durationSlide: int;
- }
- Table {
- headerBg: color;
- borderFg: color;
- border: pixels;
- radius: pixels;
- labelMinWidth: pixels;
- labelMaxWidth: double;
- smallButton: RoundButton;
- defaultLabel: FlatLabel;
- defaultValue: FlatLabel;
- }
- defaultLabelSimple: LabelSimple {
- font: normalFont;
- maxWidth: 0px;
- textFg: windowFg;
- }
- defaultFlatLabel: FlatLabel {
- minWidth: 0px;
- maxHeight: 0px;
- align: align(left);
- textFg: windowFg;
- style: defaultTextStyle;
- palette: defaultTextPalette;
- }
- defaultSubTextLabel: FlatLabel(defaultFlatLabel) {
- textFg: windowSubTextFg;
- }
- defaultLinkButton: LinkButton {
- color: windowActiveTextFg;
- overColor: windowActiveTextFg;
- font: linkFont;
- overFont: linkFontOver;
- }
- defaultRippleAnimation: RippleAnimation {
- color: windowBgRipple;
- showDuration: 650;
- hideDuration: 200;
- }
- emptyRippleAnimation: RippleAnimation {
- }
- defaultRippleAnimationBgOver: RippleAnimation(defaultRippleAnimation) {
- color: windowBgOver;
- }
- buttonRadius: 4px;
- defaultActiveButton: RoundButton {
- textFg: activeButtonFg;
- textFgOver: activeButtonFgOver;
- numbersTextFg: activeButtonSecondaryFg;
- numbersTextFgOver: activeButtonSecondaryFgOver;
- textBg: activeButtonBg;
- textBgOver: activeButtonBgOver;
- numbersSkip: 7px;
- width: -34px;
- height: 34px;
- padding: margins(0px, 0px, 0px, 0px);
- textTop: 8px;
- iconPosition: point(0px, 0px);
- style: semiboldTextStyle;
- ripple: RippleAnimation(defaultRippleAnimation) {
- color: activeButtonBgRipple;
- }
- }
- defaultLightButton: RoundButton(defaultActiveButton) {
- textFg: lightButtonFg;
- textFgOver: lightButtonFgOver;
- numbersTextFg: lightButtonFg;
- numbersTextFgOver: lightButtonFgOver;
- textBg: lightButtonBg;
- textBgOver: lightButtonBgOver;
- ripple: RippleAnimation(defaultRippleAnimation) {
- color: lightButtonBgRipple;
- }
- }
- defaultTableLabel: FlatLabel(defaultFlatLabel) {
- textFg: windowBoldFg;
- maxHeight: 24px;
- style: TextStyle(semiboldTextStyle) {
- font: font(12px semibold);
- }
- }
- defaultTableValue: FlatLabel(defaultFlatLabel) {
- maxHeight: 24px;
- style: TextStyle(defaultTextStyle) {
- font: font(12px);
- linkUnderline: kLinkUnderlineNever;
- }
- }
- defaultTableSmallButton: RoundButton(defaultActiveButton) {
- textFg: windowActiveTextFg;
- textFgOver: windowActiveTextFg;
- textBg: lightButtonBgOver;
- textBgOver: lightButtonBgOver;
- width: -12px;
- height: 18px;
- radius: 9px;
- textTop: 0px;
- style: TextStyle(defaultTextStyle) {
- font: font(12px);
- }
- ripple: RippleAnimation(defaultRippleAnimation) {
- color: lightButtonBgRipple;
- }
- }
- defaultTable: Table {
- headerBg: windowBgOver;
- borderFg: inputBorderFg;
- border: 1px;
- radius: 6px;
- labelMaxWidth: 0.5;
- smallButton: defaultTableSmallButton;
- defaultLabel: defaultTableLabel;
- defaultValue: defaultTableValue;
- }
- defaultScrollArea: ScrollArea {
- bg: scrollBg;
- bgOver: scrollBgOver;
- barBg: scrollBarBg;
- barBgOver: scrollBarBgOver;
- round: 2px;
- width: 10px;
- minHeight: 20px;
- deltax: 3px;
- deltat: 3px;
- deltab: 3px;
- topsh: 0px;
- bottomsh: 0px;
- shColor: shadowFg;
- duration: 150;
- hiding: 1000;
- }
- scrollBarMin: 40px;
- defaultSolidScroll: ScrollArea(defaultScrollArea) {
- deltax: 5px;
- width: 14px;
- deltat: 6px;
- deltab: 6px;
- hiding: 0;
- }
- defaultCheckboxIcon: icon {{ "default_checkbox_check", overviewCheckFgActive, point(4px, 7px) }};
- defaultCheck: Check {
- bg: transparent;
- untoggledFg: checkboxFg;
- toggledFg: windowBgActive;
- diameter: 22px;
- thickness: 2px;
- icon: defaultCheckboxIcon;
- duration: universalDuration;
- rippleAreaPadding: 8px;
- }
- defaultRadio: Radio {
- bg: transparent;
- untoggledFg: checkboxFg;
- toggledFg: windowBgActive;
- diameter: 22px;
- thickness: 2px;
- outerSkip: 10px; // * 0.1
- skip: 60px; // * 0.1
- duration: universalDuration;
- rippleAreaPadding: 8px;
- }
- defaultToggle: Toggle {
- toggledBg: windowBg;
- toggledFg: windowBgActive;
- untoggledBg: windowBg;
- untoggledFg: checkboxFg;
- duration: universalDuration;
- border: 2px;
- shift: 1px;
- diameter: 16px;
- width: 14px;
- xsize: 0px;
- vsize: 0px;
- vshift: 0px;
- stroke: 0px;
- rippleAreaPadding: 8px;
- }
- defaultCheckbox: Checkbox {
- textFg: windowFg;
- textFgActive: windowFg;
- width: -44px;
- margin: margins(8px, 8px, 8px, 8px);
- textPosition: point(10px, 2px);
- checkPosition: point(8px, 8px);
- style: defaultTextStyle;
- rippleAreaPosition: point(-8px, -8px);
- rippleBg: windowBgOver;
- rippleBgActive: lightButtonBgOver;
- ripple: defaultRippleAnimation;
- disabledOpacity: 0.5;
- }
- 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 {{ "menu/submenu_arrow", windowBoldFg }};
- defaultMenuToggle: Toggle(defaultToggle) {
- untoggledFg: menuIconFg;
- }
- defaultMenuToggleOver: Toggle(defaultToggle) {
- untoggledFg: menuIconFgOver;
- }
- defaultMenuSeparator: MenuSeparator {
- padding: margins(0px, 5px, 0px, 5px);
- width: 1px;
- fg: menuSeparatorFg;
- }
- defaultMenu: Menu {
- skip: 0px;
- itemBg: windowBg;
- itemBgOver: windowBgOver;
- itemFg: windowFg;
- itemFgOver: windowFgOver;
- itemFgDisabled: menuFgDisabled;
- itemFgShortcut: windowSubTextFg;
- itemFgShortcutOver: windowSubTextFgOver;
- itemFgShortcutDisabled: menuFgDisabled;
- itemIconPosition: point(0px, 0px);
- itemPadding: margins(17px, 8px, 17px, 7px);
- itemRightSkip: 6px;
- itemStyle: defaultTextStyle;
- itemToggle: defaultMenuToggle;
- itemToggleOver: defaultMenuToggleOver;
- itemToggleShift: 0px;
- separator: defaultMenuSeparator;
- arrow: defaultMenuArrow;
- widthMin: 156px;
- widthMax: 300px;
- ripple: defaultRippleAnimation;
- }
- defaultPopupMenu: PopupMenu {
- shadow: defaultRoundShadow;
- animation: defaultPanelAnimation;
- scrollPadding: margins(0px, 8px, 0px, 8px);
- maxHeight: 0px;
- menu: defaultMenu;
- radius: 3px;
- duration: 150;
- showDuration: 200;
- }
- boxTextStyle: TextStyle(defaultTextStyle) {
- font: font(boxFontSize);
- }
- defaultInputField: InputField {
- textBg: windowBg;
- textBgActive: windowBg;
- textFg: windowFg;
- textMargins: margins(0px, 28px, 0px, 4px);
- textAlign: align(topleft);
- placeholderFg: windowSubTextFg;
- placeholderFgActive: windowActiveTextFg;
- placeholderFgError: attentionButtonFg;
- placeholderMargins: margins(0px, 0px, 0px, 0px);
- placeholderAlign: align(topleft);
- placeholderScale: 0.9;
- placeholderShift: -20px;
- placeholderFont: font(semibold 14px);
- duration: 150;
- borderFg: inputBorderFg;
- borderFgActive: activeLineFg;
- borderFgError: activeLineFgError;
- border: 1px;
- borderActive: 2px;
- borderRadius: 0px;
- borderDenominator: 1;
- style: boxTextStyle;
- menu: defaultPopupMenu;
- heightMin: 55px;
- heightMax: 148px;
- widthMin: 64px;
- }
- defaultInputFieldLimit: defaultSubTextLabel;
- defaultIconButton: IconButton {
- iconPosition: point(-1px, -1px);
- }
- defaultMultiSelectItem: MultiSelectItem {
- padding: margins(6px, 7px, 12px, 0px);
- maxWidth: 128px;
- height: 32px;
- style: defaultTextStyle;
- textBg: contactsBgOver;
- textFg: windowFg;
- textActiveBg: activeButtonBg;
- textActiveFg: activeButtonFg;
- deleteFg: activeButtonFg;
- deleteCross: CrossAnimation {
- size: 32px;
- skip: 10px;
- stroke: 1.5;
- minScale: 0.3;
- }
- duration: 150;
- minScale: 0.3;
- }
- defaultMultiSelectSearchField: InputField(defaultInputField) {
- textBg: transparent;
- textMargins: margins(2px, 7px, 2px, 0px);
- placeholderFg: placeholderFg;
- placeholderFgActive: placeholderFgActive;
- placeholderFgError: placeholderFgActive;
- placeholderMargins: margins(2px, 0px, 2px, 0px);
- placeholderScale: 0.;
- placeholderFont: normalFont;
- border: 0px;
- borderActive: 0px;
- heightMin: 32px;
- style: defaultTextStyle;
- }
- boxFieldSearchIcon: icon {{ "box_search", menuIconFg, point(10px, 9px) }};
- defaultMultiSelectSearchCancel: CrossButton {
- width: 44px;
- height: 44px;
- cross: CrossAnimation {
- size: 36px;
- skip: 12px;
- stroke: 1.5;
- minScale: 0.3;
- }
- crossFg: boxTitleCloseFg;
- crossFgOver: boxTitleCloseFgOver;
- crossPosition: point(4px, 4px);
- duration: 150;
- loadingPeriod: 1000;
- ripple: defaultRippleAnimationBgOver;
- }
- defaultMultiSelect: MultiSelect {
- bg: boxSearchBg;
- padding: margins(8px, 6px, 8px, 6px);
- maxHeight: 104px;
- scroll: ScrollArea(defaultSolidScroll) {
- deltat: 3px;
- deltab: 3px;
- round: 1px;
- width: 8px;
- deltax: 3px;
- hiding: 1000;
- }
- item: defaultMultiSelectItem;
- itemSkip: 8px;
- field: defaultMultiSelectSearchField;
- fieldMinWidth: 42px;
- fieldIcon: boxFieldSearchIcon;
- fieldIconSkip: 36px;
- fieldCancel: defaultMultiSelectSearchCancel;
- fieldCancelSkip: 40px;
- }
- widgetFadeDuration: 200;
- SettingsSlider {
- padding: pixels;
- height: pixels;
- barTop: pixels;
- barSkip: pixels;
- barStroke: pixels;
- barRadius: pixels;
- barFg: color;
- barFgActive: color;
- barSnapToLabel: bool;
- labelTop: pixels;
- labelStyle: TextStyle;
- labelFg: color;
- labelFgActive: color;
- strictSkip: pixels;
- duration: int;
- rippleBottomSkip: pixels;
- rippleBg: color;
- rippleBgActive: color;
- ripple: RippleAnimation;
- }
- defaultSettingsSlider: SettingsSlider {
- padding: 0px;
- height: 39px;
- barTop: 5px;
- barSkip: 3px;
- barStroke: 3px;
- barRadius: 1px;
- barFg: sliderBgInactive;
- barFgActive: sliderBgActive;
- labelTop: 17px;
- labelStyle: defaultTextStyle;
- labelFg: windowActiveTextFg;
- labelFgActive: windowActiveTextFg;
- duration: 150;
- }
- defaultTabsSlider: SettingsSlider(defaultSettingsSlider) {
- height: 43px;
- barTop: 40px;
- barSkip: 0px;
- barStroke: 6px;
- barRadius: 2px;
- barFg: transparent;
- barSnapToLabel: true;
- labelTop: 12px;
- labelStyle: semiboldTextStyle;
- labelFg: windowSubTextFg;
- labelFgActive: lightButtonFg;
- rippleBottomSkip: 1px;
- rippleBg: windowBgOver;
- rippleBgActive: lightButtonBgOver;
- ripple: defaultRippleAnimation;
- }
- defaultContinuousSlider: MediaSlider {
- width: 3px;
- activeFg: mediaPlayerActiveFg;
- inactiveFg: mediaPlayerInactiveFg;
- activeFgOver: mediaPlayerActiveFg;
- inactiveFgOver: mediaPlayerInactiveFg;
- activeFgDisabled: mediaPlayerInactiveFg;
- inactiveFgDisabled: windowBg;
- receivedTillFg: mediaPlayerInactiveFg;
- seekSize: size(9px, 9px);
- duration: 150;
- }
- defaultRoundCheckbox: RoundCheckbox {
- border: windowBg;
- bgActive: windowBgActive;
- width: 2px;
- duration: 160;
- bgDuration: 0.75;
- fgDuration: 1.;
- }
- defaultPeerListCheckIcon: icon {{
- "default_checkbox_check",
- overviewCheckFgActive,
- point(3px, 6px)
- }};
- defaultPeerListCheck: RoundCheckbox(defaultRoundCheckbox) {
- size: 20px;
- sizeSmall: 0.3;
- bgInactive: overviewCheckBg;
- bgActive: overviewCheckBgActive;
- check: defaultPeerListCheckIcon;
- }
- defaultPeerListCheckbox: RoundImageCheckbox {
- selectExtendTwice: 0px;
- imageRadius: 21px;
- imageSmallRadius: 18px;
- selectWidth: 2px;
- selectFg: windowBgActive;
- selectDuration: 150;
- check: defaultPeerListCheck;
- }
- defaultInnerDropdown: InnerDropdown {
- padding: margins(10px, 10px, 10px, 10px);
- shadow: defaultRoundShadow;
- animation: defaultPanelAnimation;
- duration: 150;
- showDuration: 200;
- bg: menuBg;
- scroll: defaultSolidScroll;
- }
- defaultDropdownMenu: DropdownMenu {
- wrap: InnerDropdown(defaultInnerDropdown) {
- scrollPadding: margins(0px, 8px, 0px, 8px);
- }
- menu: defaultMenu;
- }
- defaultTooltip: Tooltip {
- textBg: tooltipBg;
- textFg: tooltipFg;
- textStyle: defaultTextStyle;
- textBorder: tooltipBorderFg;
- textPadding: margins(5px, 2px, 5px, 2px);
- shift: point(-20px, 20px);
- skip: 10px;
- widthMax: 800px;
- linesMax: 12;
- }
- defaultImportantTooltip: ImportantTooltip {
- bg: importantTooltipBg;
- margin: margins(4px, 4px, 4px, 4px);
- padding: margins(10px, 3px, 10px, 5px);
- radius: 4px;
- arrow: 4px;
- arrowSkipMin: 24px;
- arrowSkip: 66px;
- shift: 12px;
- duration: 200;
- }
- defaultImportantTooltipLabel: FlatLabel(defaultFlatLabel) {
- style: TextStyle(defaultTextStyle) {
- font: font(11px);
- }
- textFg: importantTooltipFg;
- palette: TextPalette(defaultTextPalette) {
- linkFg: importantTooltipFgLink;
- selectLinkFg: importantTooltipFgLink;
- }
- minWidth: 36px;
- }
- BotKeyboardButton {
- margin: pixels;
- padding: pixels;
- height: pixels;
- textTop: pixels;
- ripple: RippleAnimation;
- }
- TwoIconButton {
- width: pixels;
- height: pixels;
- iconBelow: icon;
- iconAbove: icon;
- iconBelowOver: icon;
- iconAboveOver: icon;
- iconPosition: point;
- rippleAreaPosition: point;
- rippleAreaSize: pixels;
- ripple: RippleAnimation;
- }
- historySendActionTypingDuration: 800;
- historySendActionTypingHalfPeriod: 320;
- historySendActionTypingDeltaTime: 150;
- historySendActionTypingPosition: point(4px, -4px);
- historySendActionTypingDelta: 6px;
- historySendActionTypingLargeNumerator: 28px;
- historySendActionTypingSmallNumerator: 16px;
- historySendActionTypingDenominator: 12.;
- historySendActionRecordDuration: 500;
- historySendActionRecordPosition: point(1px, -4px);
- historySendActionRecordDelta: 4px;
- historySendActionRecordStrokeNumerator: 16px;
- historySendActionRecordDenominator: 8.;
- historySendActionUploadDuration: 500;
- historySendActionUploadPosition: point(0px, -4px);
- historySendActionUploadDelta: 5px;
- historySendActionUploadStrokeNumerator: 16px;
- historySendActionUploadSizeNumerator: 32px;
- historySendActionUploadDenominator: 8.;
- historySendActionChooseStickerDuration: 2000;
- historySendActionChooseStickerPosition: point(1px, -10px);
- historySendActionChooseStickerEyeWidth: 7px;
- historySendActionChooseStickerEyeHeight: 11px;
- historySendActionChooseStickerEyeStep: 2px;
- PeerListItem {
- left: pixels;
- bottom: pixels;
- height: pixels;
- photoPosition: point;
- namePosition: point;
- nameStyle: TextStyle;
- nameFg: color;
- nameFgChecked: color;
- statusPosition: point;
- photoSize: pixels;
- maximalWidth: pixels;
- button: OutlineButton;
- checkbox: RoundImageCheckbox;
- disabledCheckFg: color;
- statusFg: color;
- statusFgOver: color;
- statusFgActive: color;
- }
- PeerList {
- padding: margins;
- bg: color;
- about: FlatLabel;
- item: PeerListItem;
- }
- defaultPeerListButton: OutlineButton {
- textBg: windowBg;
- textBgOver: windowBgOver;
- textFg: windowSubTextFg;
- textFgOver: windowSubTextFgOver;
- font: normalFont;
- padding: margins(11px, 5px, 11px, 5px);
- ripple: defaultRippleAnimation;
- }
- defaultPeerListItem: PeerListItem {
- height: 58px;
- photoPosition: point(12px, 6px);
- namePosition: point(68px, 11px);
- nameStyle: semiboldTextStyle;
- nameFg: contactsNameFg;
- nameFgChecked: windowActiveTextFg;
- statusPosition: point(68px, 31px);
- photoSize: 46px;
- button: defaultPeerListButton;
- checkbox: defaultPeerListCheckbox;
- disabledCheckFg: menuIconFg;
- statusFg: windowSubTextFg;
- statusFgOver: windowSubTextFgOver;
- statusFgActive: windowActiveTextFg;
- }
- defaultPeerListAbout: FlatLabel(defaultFlatLabel) {
- minWidth: 240px;
- textFg: membersAboutLimitFg;
- align: align(top);
- style: TextStyle(boxTextStyle) {
- lineHeight: 22px;
- }
- }
- defaultPeerList: PeerList {
- padding: margins(0px, 0px, 0px, 0px);
- bg: contactsBg;
- about: defaultPeerListAbout;
- item: defaultPeerListItem;
- }
- SearchFieldRow {
- height: pixels;
- padding: margins;
- field: InputField;
- fieldIcon: icon;
- fieldIconSkip: pixels;
- fieldCancel: CrossButton;
- fieldCancelSkip: pixels;
- }
- LevelMeter {
- height: pixels;
- lineWidth: pixels;
- lineSpacing: pixels;
- lineCount: int;
- activeFg: color;
- inactiveFg: color;
- }
- defaultLevelMeter: LevelMeter {
- height: 18px;
- lineWidth: 3px;
- lineSpacing: 5px;
- lineCount: 44;
- activeFg: mediaPlayerActiveFg;
- inactiveFg: mediaPlayerInactiveFg;
- }
- menuToggleIcon: icon {{ "title_menu_dots", menuIconFg }};
- menuToggleIconOver: icon {{ "title_menu_dots", menuIconFgOver }};
- menuToggle: IconButton {
- width: 40px;
- height: 40px;
- icon: menuToggleIcon;
- iconOver: menuToggleIconOver;
- iconPosition: point(16px, 10px);
- rippleAreaPosition: point(0px, 0px);
- rippleAreaSize: 40px;
- ripple: defaultRippleAnimationBgOver;
- }
- backButtonIcon: icon {{ "box_button_back", menuIconFg }};
- backButtonIconOver: icon {{ "box_button_back", menuIconFgOver }};
- backButton: IconButton(defaultIconButton) {
- width: 40px;
- height: 40px;
- icon: backButtonIcon;
- iconOver: backButtonIconOver;
- rippleAreaPosition: point(0px, 0px);
- rippleAreaSize: 40px;
- ripple: defaultRippleAnimationBgOver;
- }
- defaultSettingsToggle: Toggle(defaultToggle) {
- untoggledFg: menuIconFg;
- }
- defaultSettingsToggleOver: Toggle(defaultSettingsToggle) {
- untoggledFg: menuIconFgOver;
- }
- defaultSettingsRightLabel: FlatLabel(defaultFlatLabel) {
- textFg: windowActiveTextFg;
- style: boxTextStyle;
- maxHeight: 20px;
- }
- defaultSettingsButton: SettingsButton {
- textFg: windowBoldFg;
- textFgOver: windowBoldFgOver;
- textBg: windowBg;
- textBgOver: windowBgOver;
- style: boxTextStyle;
- rightLabel: defaultSettingsRightLabel;
- height: 20px;
- padding: margins(22px, 10px, 22px, 8px);
- toggle: defaultSettingsToggle;
- toggleOver: defaultSettingsToggleOver;
- toggleSkip: 22px;
- ripple: defaultRippleAnimation;
- }
- defaultSideBarButton: SideBarButton {
- textBg: sideBarBg;
- textBgActive: sideBarBgActive;
- textFg: sideBarTextFg;
- textFgActive: sideBarTextFgActive;
- badgeBg: sideBarBadgeBg;
- badgeBgMuted: sideBarBadgeBgMuted;
- badgeFg: sideBarBadgeFg;
- ripple: RippleAnimation(defaultRippleAnimation) {
- color: sideBarBgRipple;
- }
- }
- defaultToastPalette: TextPalette(defaultTextPalette) {
- linkFg: mediaviewTextLinkFg;
- monoFg: mediaviewCaptionFg;
- }
- defaultToast: Toast {
- style: defaultTextStyle;
- palette: defaultToastPalette;
- padding: margins(19px, 13px, 19px, 12px);
- margin: margins(13px, 13px, 13px, 13px);
- maxWidth: 480px;
- durationFadeIn: 200;
- durationFadeOut: 1000;
- durationSlide: 160;
- }
- defaultMultilineToast: Toast(defaultToast) {
- minWidth: 160px;
- maxWidth: 360px;
- }
- // Windows specific title
- windowTitleButtonWidth: 36px;
- windowTitleHeight: 24px;
- windowTitleButton: IconButton {
- width: windowTitleButtonWidth;
- height: windowTitleHeight;
- iconPosition: point(0px, 0px);
- }
- windowTitleButtonClose: IconButton(windowTitleButton) {
- width: windowTitleButtonWidth;
- }
- windowTitleButtonSize: size(windowTitleButtonWidth, windowTitleHeight);
- defaultWindowTitle: WindowTitle {
- height: windowTitleHeight;
- bg: titleBg;
- bgActive: titleBgActive;
- fg: titleFg;
- fgActive: titleFgActive;
- style: TextStyle(defaultTextStyle) {
- font: font(semibold 12px);
- }
- shadow: true;
- oneSideControls: false;
- minimize: IconButton(windowTitleButton) {
- icon: icon {
- { windowTitleButtonSize, titleButtonBg },
- { "title_button_minimize", titleButtonFg },
- };
- iconOver: icon {
- { windowTitleButtonSize, titleButtonBgOver },
- { "title_button_minimize", titleButtonFgOver },
- };
- }
- minimizeIconActive: icon {
- { windowTitleButtonSize, titleButtonBgActive },
- { "title_button_minimize", titleButtonFgActive },
- };
- minimizeIconActiveOver: icon {
- { windowTitleButtonSize, titleButtonBgActiveOver },
- { "title_button_minimize", titleButtonFgActiveOver },
- };
- maximize: IconButton(windowTitleButton) {
- icon: icon {
- { windowTitleButtonSize, titleButtonBg },
- { "title_button_maximize", titleButtonFg },
- };
- iconOver: icon {
- { windowTitleButtonSize, titleButtonBgOver },
- { "title_button_maximize", titleButtonFgOver },
- };
- }
- maximizeIconActive: icon {
- { windowTitleButtonSize, titleButtonBgActive },
- { "title_button_maximize", titleButtonFgActive },
- };
- maximizeIconActiveOver: icon {
- { windowTitleButtonSize, titleButtonBgActiveOver },
- { "title_button_maximize", titleButtonFgActiveOver },
- };
- restoreIcon: icon {
- { windowTitleButtonSize, titleButtonBg },
- { "title_button_restore", titleButtonFg },
- };
- restoreIconOver: icon {
- { windowTitleButtonSize, titleButtonBgOver },
- { "title_button_restore", titleButtonFgOver },
- };
- restoreIconActive: icon {
- { windowTitleButtonSize, titleButtonBgActive },
- { "title_button_restore", titleButtonFgActive },
- };
- restoreIconActiveOver: icon {
- { windowTitleButtonSize, titleButtonBgActiveOver },
- { "title_button_restore", titleButtonFgActiveOver },
- };
- close: IconButton(windowTitleButtonClose) {
- icon: icon {
- { windowTitleButtonSize, titleButtonCloseBg },
- { "title_button_close", titleButtonCloseFg },
- };
- iconOver: icon {
- { windowTitleButtonSize, titleButtonCloseBgOver },
- { "title_button_close", titleButtonCloseFgOver },
- };
- }
- closeIconActive: icon {
- { windowTitleButtonSize, titleButtonCloseBgActive },
- { "title_button_close", titleButtonCloseFgActive },
- };
- closeIconActiveOver: icon {
- { windowTitleButtonSize, titleButtonCloseBgActiveOver },
- { "title_button_close", titleButtonCloseFgActiveOver },
- };
- }
- windowShadow: icon {{ "window_shadow", windowShadowFg }};
- windowShadowShift: 1px;
- callRadius: 6px;
- callShadow: Shadow {
- left: icon {{ "calls/call_shadow_left", windowShadowFg }};
- topLeft: icon {{ "calls/call_shadow_top_left", windowShadowFg }};
- top: icon {{ "calls/call_shadow_top", windowShadowFg }};
- topRight: icon {{ "calls/call_shadow_top_left-flip_horizontal", windowShadowFg }};
- right: icon {{ "calls/call_shadow_left-flip_horizontal", windowShadowFg }};
- bottomRight: icon {{ "calls/call_shadow_top_left-flip_vertical-flip_horizontal", windowShadowFg }};
- bottom: icon {{ "calls/call_shadow_top-flip_vertical", windowShadowFg }};
- bottomLeft: icon {{ "calls/call_shadow_top_left-flip_vertical", windowShadowFg }};
- extend: margins(9px, 8px, 9px, 10px);
- fallback: windowShadowFgFallback;
- }
- sideBarButtonLockArcOffset: 2px;
- sideBarButtonLockSize: size(9px, 10px);
- sideBarButtonLockArcHeight: 3px;
- sideBarButtonLockBlockHeight: 5px;
- sideBarButtonLockPenWidth: 3px;
- sideBarButtonLockPenWidthDivider: 2;
- menuIconColor: windowBoldFg;
- menuIconAttentionColor: attentionButtonFg;
- menuIconSubmenuArrow: defaultMenuArrow;
- menuWithIcons: Menu(defaultMenu) {
- itemIconPosition: point(15px, 5px);
- itemPadding: margins(54px, 8px, 17px, 8px);
- arrow: menuIconSubmenuArrow;
- }
- menuWithIconsAttention: Menu(menuWithIcons) {
- itemFg: attentionButtonFg;
- itemFgOver: attentionButtonFgOver;
- }
- popupMenuWithIcons: PopupMenu(defaultPopupMenu) {
- scrollPadding: margins(0px, 5px, 0px, 5px);
- menu: menuWithIcons;
- }
- dropdownMenuWithIcons: DropdownMenu(defaultDropdownMenu) {
- wrap: InnerDropdown(defaultInnerDropdown) {
- scrollPadding: margins(0px, 5px, 0px, 5px);
- }
- menu: menuWithIcons;
- }
- universalRippleAnimation: RippleAnimation(defaultRippleAnimation) {
- color: shadowFg;
- }
|