widgets.style 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. using "ui/basic.style";
  8. LabelSimple {
  9. font: font;
  10. maxWidth: pixels;
  11. textFg: color;
  12. }
  13. FlatLabel {
  14. margin: margins;
  15. minWidth: pixels;
  16. align: align;
  17. textFg: color;
  18. maxHeight: pixels;
  19. style: TextStyle;
  20. palette: TextPalette;
  21. }
  22. LinkButton {
  23. color: color;
  24. overColor: color;
  25. font: font;
  26. overFont: font;
  27. padding: margins;
  28. }
  29. RippleAnimation {
  30. color: color;
  31. showDuration: int;
  32. hideDuration: int;
  33. }
  34. InfiniteRadialAnimation {
  35. color: color;
  36. thickness: pixels;
  37. size: size;
  38. linearPeriod: int;
  39. sinePeriod: int;
  40. sineDuration: int;
  41. sineShift: int;
  42. arcMin: double;
  43. arcMax: double;
  44. }
  45. defaultInfiniteRadialAnimation: InfiniteRadialAnimation {
  46. linearPeriod: 1000;
  47. sinePeriod: 3000;
  48. sineDuration: 1000;
  49. sineShift: 1500;
  50. arcMin: 0.0625;
  51. arcMax: 0.75;
  52. }
  53. FlatButton {
  54. color: color;
  55. overColor: color;
  56. bgColor: color;
  57. overBgColor: color;
  58. width: pixels;
  59. height: pixels;
  60. textTop: pixels;
  61. font: font;
  62. overFont: font;
  63. ripple: RippleAnimation;
  64. }
  65. RoundButton {
  66. textFg: color;
  67. textFgOver: color;
  68. textBg: color; // rect of textBg with rounded rect of textBgOver upon it
  69. textBgOver: color;
  70. numbersTextFg: color;
  71. numbersTextFgOver: color;
  72. numbersSkip: pixels;
  73. width: pixels;
  74. height: pixels;
  75. radius: pixels;
  76. padding: margins;
  77. textTop: pixels;
  78. icon: icon;
  79. iconOver: icon;
  80. iconPosition: point;
  81. style: TextStyle;
  82. ripple: RippleAnimation;
  83. }
  84. Toggle {
  85. toggledBg: color;
  86. toggledFg: color;
  87. untoggledBg: color;
  88. untoggledFg: color;
  89. duration: int;
  90. border: pixels;
  91. shift: pixels;
  92. diameter: pixels;
  93. width: pixels;
  94. xsize: pixels;
  95. vsize: pixels;
  96. vshift: pixels;
  97. stroke: pixels;
  98. lockIcon: icon;
  99. rippleAreaPadding: pixels;
  100. }
  101. Check {
  102. bg: color;
  103. untoggledFg: color;
  104. toggledFg: color;
  105. diameter: pixels;
  106. thickness: pixels;
  107. icon: icon;
  108. duration: int;
  109. rippleAreaPadding: pixels;
  110. }
  111. Radio {
  112. bg: color;
  113. untoggledFg: color;
  114. toggledFg: color;
  115. diameter: pixels;
  116. thickness: pixels;
  117. outerSkip: pixels;
  118. skip: pixels;
  119. duration: int;
  120. rippleAreaPadding: pixels;
  121. }
  122. Checkbox {
  123. textFg: color;
  124. textFgActive: color;
  125. width: pixels;
  126. margin: margins;
  127. textPosition: point;
  128. checkPosition: point;
  129. style: TextStyle;
  130. rippleAreaPosition: point;
  131. rippleBg: color;
  132. rippleBgActive: color;
  133. ripple: RippleAnimation;
  134. disabledOpacity: double;
  135. }
  136. ScrollArea {
  137. bg: color;
  138. bgOver: color;
  139. barBg: color;
  140. barBgOver: color;
  141. barHidden: bool;
  142. round: pixels;
  143. width: pixels;
  144. minHeight: pixels;
  145. deltax: pixels;
  146. deltat: pixels;
  147. deltab: pixels;
  148. topsh: pixels;
  149. bottomsh: pixels;
  150. shColor: color;
  151. duration: int;
  152. hiding: int;
  153. }
  154. Shadow {
  155. left: icon;
  156. topLeft: icon;
  157. top: icon;
  158. topRight: icon;
  159. right: icon;
  160. bottomRight: icon;
  161. bottom: icon;
  162. bottomLeft: icon;
  163. extend: margins;
  164. fallback: color;
  165. }
  166. PanelAnimation {
  167. startWidth: double;
  168. widthDuration: double;
  169. startHeight: double;
  170. heightDuration: double;
  171. startOpacity: double;
  172. opacityDuration: double;
  173. startFadeTop: double;
  174. fadeHeight: double;
  175. fadeOpacity: double;
  176. fadeBg: color;
  177. shadow: Shadow;
  178. }
  179. MenuSeparator {
  180. padding: margins;
  181. width: pixels;
  182. fg: color;
  183. }
  184. Menu {
  185. skip: pixels;
  186. itemBg: color;
  187. itemBgOver: color;
  188. itemFg: color;
  189. itemFgOver: color;
  190. itemFgDisabled: color;
  191. itemFgShortcut: color;
  192. itemFgShortcutOver: color;
  193. itemFgShortcutDisabled: color;
  194. itemPadding: margins;
  195. itemRightSkip: pixels;
  196. itemIconPosition: point;
  197. itemStyle: TextStyle;
  198. itemToggle: Toggle;
  199. itemToggleOver: Toggle;
  200. itemToggleShift: pixels;
  201. separator: MenuSeparator;
  202. arrow: icon;
  203. widthMin: pixels;
  204. widthMax: pixels;
  205. ripple: RippleAnimation;
  206. }
  207. PopupMenu {
  208. shadow: Shadow;
  209. scrollPadding: margins;
  210. maxHeight: pixels;
  211. animation: PanelAnimation;
  212. menu: Menu;
  213. radius: pixels;
  214. duration: int;
  215. showDuration: int;
  216. }
  217. InputField {
  218. textBg: color;
  219. textBgActive: color; // Used only with borderRadius.
  220. textFg: color;
  221. textMargins: margins;
  222. textAlign: align;
  223. placeholderFg: color;
  224. placeholderFgActive: color;
  225. placeholderFgError: color;
  226. placeholderMargins: margins;
  227. placeholderAlign: align;
  228. placeholderScale: double;
  229. placeholderShift: pixels;
  230. placeholderFont: font;
  231. duration: int;
  232. borderFg: color;
  233. borderFgActive: color;
  234. borderFgError: color;
  235. border: pixels;
  236. borderActive: pixels;
  237. borderRadius: pixels;
  238. borderDenominator: int;
  239. style: TextStyle;
  240. menu: PopupMenu;
  241. width: pixels;
  242. heightMin: pixels;
  243. heightMax: pixels;
  244. widthMin: pixels;
  245. }
  246. OutlineButton {
  247. textBg: color;
  248. textBgOver: color;
  249. textFg: color;
  250. textFgOver: color;
  251. font: font;
  252. padding: margins;
  253. ripple: RippleAnimation;
  254. }
  255. IconButton {
  256. width: pixels;
  257. height: pixels;
  258. icon: icon;
  259. iconOver: icon;
  260. iconPosition: point;
  261. duration: int;
  262. rippleAreaPosition: point;
  263. rippleAreaSize: pixels;
  264. ripple: RippleAnimation;
  265. }
  266. IconButtonWithText {
  267. iconButton: IconButton;
  268. height: pixels;
  269. textFg: color;
  270. textFgOver: color;
  271. textPadding: margins;
  272. textAlign: align;
  273. font: font;
  274. }
  275. MediaSlider {
  276. width: pixels;
  277. activeFg: color;
  278. inactiveFg: color;
  279. activeFgOver: color;
  280. inactiveFgOver: color;
  281. activeFgDisabled: color;
  282. inactiveFgDisabled: color;
  283. receivedTillFg: color;
  284. seekSize: size;
  285. duration: int;
  286. }
  287. FilledSlider {
  288. fullWidth: pixels;
  289. lineWidth: pixels;
  290. activeFg: color;
  291. inactiveFg: color;
  292. disabledFg: color;
  293. duration: int;
  294. }
  295. RoundCheckbox {
  296. border: color;
  297. bgInactive: color;
  298. bgActive: color;
  299. width: pixels;
  300. size: pixels;
  301. sizeSmall: double;
  302. duration: int;
  303. bgDuration: double;
  304. fgDuration: double;
  305. check: icon;
  306. }
  307. RoundImageCheckbox {
  308. selectExtendTwice: pixels;
  309. imageRadius: pixels;
  310. imageSmallRadius: pixels;
  311. selectWidth: pixels;
  312. selectFg: color;
  313. selectDuration: int;
  314. check: RoundCheckbox;
  315. }
  316. CrossAnimation {
  317. fg: color;
  318. size: pixels;
  319. skip: pixels;
  320. stroke: double;
  321. minScale: double;
  322. }
  323. CrossButton {
  324. width: pixels;
  325. height: pixels;
  326. cross: CrossAnimation;
  327. crossFg: color;
  328. crossFgOver:color;
  329. crossPosition: point;
  330. duration: int;
  331. loadingPeriod: int;
  332. ripple: RippleAnimation;
  333. }
  334. CrossLineAnimation {
  335. fg: color;
  336. icon: icon;
  337. startPosition: point;
  338. endPosition: point;
  339. stroke: pixels;
  340. strokeDenominator: int;
  341. }
  342. ArcsAnimation {
  343. fg: color;
  344. stroke: pixels;
  345. space: pixels;
  346. duration: int;
  347. deltaAngle: int;
  348. deltaHeight: pixels;
  349. deltaWidth: pixels;
  350. startHeight: pixels;
  351. startWidth: pixels;
  352. }
  353. MultiSelectItem {
  354. padding: margins;
  355. maxWidth: pixels;
  356. height: pixels;
  357. style: TextStyle;
  358. textBg: color;
  359. textFg: color;
  360. textActiveBg: color;
  361. textActiveFg: color;
  362. duration: int;
  363. deleteFg: color;
  364. deleteCross: CrossAnimation;
  365. minScale: double;
  366. }
  367. MultiSelect {
  368. bg: color;
  369. padding: margins;
  370. maxHeight: pixels;
  371. scroll: ScrollArea;
  372. item: MultiSelectItem;
  373. itemSkip: pixels;
  374. field: InputField;
  375. fieldMinWidth: pixels;
  376. fieldIcon: icon;
  377. fieldIconSkip: pixels;
  378. fieldCancel: CrossButton;
  379. fieldCancelSkip: pixels;
  380. }
  381. CallButton {
  382. button: IconButton;
  383. bg: color;
  384. bgSize: pixels;
  385. bgPosition: point;
  386. angle: double;
  387. outerRadius: pixels;
  388. outerBg: color;
  389. label: FlatLabel;
  390. cornerButtonPosition: point;
  391. cornerButtonBorder: pixels;
  392. }
  393. InnerDropdown {
  394. padding: margins;
  395. shadow: Shadow;
  396. animation: PanelAnimation;
  397. duration: int;
  398. showDuration: int;
  399. width: pixels;
  400. bg: color;
  401. scroll: ScrollArea;
  402. scrollMargin: margins;
  403. scrollPadding: margins;
  404. }
  405. DropdownMenu {
  406. wrap: InnerDropdown;
  407. menu: Menu;
  408. }
  409. Tooltip {
  410. textBg: color;
  411. textFg: color;
  412. textStyle: TextStyle;
  413. textBorder: color;
  414. textPadding: margins;
  415. shift: point;
  416. skip: pixels;
  417. widthMax: pixels;
  418. linesMax: int;
  419. }
  420. ImportantTooltip {
  421. bg: color;
  422. margin: margins;
  423. padding: margins;
  424. radius: pixels;
  425. arrow: pixels;
  426. arrowSkipMin: pixels;
  427. arrowSkip: pixels;
  428. shift: pixels;
  429. duration: int;
  430. }
  431. SettingsButton {
  432. textFg: color;
  433. textFgOver: color;
  434. textBg: color;
  435. textBgOver: color;
  436. style: TextStyle;
  437. rightLabel: FlatLabel;
  438. height: pixels;
  439. padding: margins;
  440. iconLeft: pixels;
  441. toggle: Toggle;
  442. toggleOver: Toggle;
  443. toggleSkip: pixels;
  444. ripple: RippleAnimation;
  445. }
  446. SettingsCountButton {
  447. button: SettingsButton;
  448. icon: icon;
  449. iconPosition: point;
  450. label: FlatLabel;
  451. labelPosition: point;
  452. }
  453. PassportScanRow {
  454. padding: margins;
  455. size: pixels;
  456. textLeft: pixels;
  457. nameTop: pixels;
  458. statusTop: pixels;
  459. border: pixels;
  460. borderFg: color;
  461. remove: IconButton;
  462. restore: RoundButton;
  463. }
  464. WindowTitle {
  465. height: pixels;
  466. bg: color;
  467. bgActive: color;
  468. fg: color;
  469. fgActive: color;
  470. shadow: bool;
  471. oneSideControls: bool;
  472. style: TextStyle;
  473. minimize: IconButton;
  474. minimizeIconActive: icon;
  475. minimizeIconActiveOver: icon;
  476. maximize: IconButton;
  477. maximizeIconActive: icon;
  478. maximizeIconActiveOver: icon;
  479. restoreIcon: icon;
  480. restoreIconOver: icon;
  481. restoreIconActive: icon;
  482. restoreIconActiveOver: icon;
  483. close: IconButton;
  484. closeIconActive: icon;
  485. closeIconActiveOver: icon;
  486. }
  487. SideBarButton {
  488. icon: icon;
  489. iconActive: icon;
  490. iconPosition: point;
  491. textTop: pixels;
  492. textSkip: pixels;
  493. minTextWidth: pixels;
  494. minHeight: pixels;
  495. style: TextStyle;
  496. badgeStyle: TextStyle;
  497. badgeSkip: pixels;
  498. badgeHeight: pixels;
  499. badgeStroke: pixels;
  500. badgePosition: point;
  501. textBg: color;
  502. textBgActive: color;
  503. textFg: color;
  504. textFgActive: color;
  505. badgeBg: color;
  506. badgeBgMuted: color;
  507. badgeFg: color;
  508. ripple: RippleAnimation;
  509. }
  510. Toast {
  511. style: TextStyle;
  512. icon: icon;
  513. iconPosition: point;
  514. palette: TextPalette;
  515. padding: margins;
  516. margin: margins;
  517. minWidth: pixels;
  518. maxWidth: pixels;
  519. durationFadeIn: int;
  520. durationFadeOut: int;
  521. durationSlide: int;
  522. }
  523. Table {
  524. headerBg: color;
  525. borderFg: color;
  526. border: pixels;
  527. radius: pixels;
  528. labelMinWidth: pixels;
  529. labelMaxWidth: double;
  530. smallButton: RoundButton;
  531. defaultLabel: FlatLabel;
  532. defaultValue: FlatLabel;
  533. }
  534. defaultLabelSimple: LabelSimple {
  535. font: normalFont;
  536. maxWidth: 0px;
  537. textFg: windowFg;
  538. }
  539. defaultFlatLabel: FlatLabel {
  540. minWidth: 0px;
  541. maxHeight: 0px;
  542. align: align(left);
  543. textFg: windowFg;
  544. style: defaultTextStyle;
  545. palette: defaultTextPalette;
  546. }
  547. defaultSubTextLabel: FlatLabel(defaultFlatLabel) {
  548. textFg: windowSubTextFg;
  549. }
  550. defaultLinkButton: LinkButton {
  551. color: windowActiveTextFg;
  552. overColor: windowActiveTextFg;
  553. font: linkFont;
  554. overFont: linkFontOver;
  555. }
  556. defaultRippleAnimation: RippleAnimation {
  557. color: windowBgRipple;
  558. showDuration: 650;
  559. hideDuration: 200;
  560. }
  561. emptyRippleAnimation: RippleAnimation {
  562. }
  563. defaultRippleAnimationBgOver: RippleAnimation(defaultRippleAnimation) {
  564. color: windowBgOver;
  565. }
  566. buttonRadius: 4px;
  567. defaultActiveButton: RoundButton {
  568. textFg: activeButtonFg;
  569. textFgOver: activeButtonFgOver;
  570. numbersTextFg: activeButtonSecondaryFg;
  571. numbersTextFgOver: activeButtonSecondaryFgOver;
  572. textBg: activeButtonBg;
  573. textBgOver: activeButtonBgOver;
  574. numbersSkip: 7px;
  575. width: -34px;
  576. height: 34px;
  577. padding: margins(0px, 0px, 0px, 0px);
  578. textTop: 8px;
  579. iconPosition: point(0px, 0px);
  580. style: semiboldTextStyle;
  581. ripple: RippleAnimation(defaultRippleAnimation) {
  582. color: activeButtonBgRipple;
  583. }
  584. }
  585. defaultLightButton: RoundButton(defaultActiveButton) {
  586. textFg: lightButtonFg;
  587. textFgOver: lightButtonFgOver;
  588. numbersTextFg: lightButtonFg;
  589. numbersTextFgOver: lightButtonFgOver;
  590. textBg: lightButtonBg;
  591. textBgOver: lightButtonBgOver;
  592. ripple: RippleAnimation(defaultRippleAnimation) {
  593. color: lightButtonBgRipple;
  594. }
  595. }
  596. defaultTableLabel: FlatLabel(defaultFlatLabel) {
  597. textFg: windowBoldFg;
  598. maxHeight: 24px;
  599. style: TextStyle(semiboldTextStyle) {
  600. font: font(12px semibold);
  601. }
  602. }
  603. defaultTableValue: FlatLabel(defaultFlatLabel) {
  604. maxHeight: 24px;
  605. style: TextStyle(defaultTextStyle) {
  606. font: font(12px);
  607. linkUnderline: kLinkUnderlineNever;
  608. }
  609. }
  610. defaultTableSmallButton: RoundButton(defaultActiveButton) {
  611. textFg: windowActiveTextFg;
  612. textFgOver: windowActiveTextFg;
  613. textBg: lightButtonBgOver;
  614. textBgOver: lightButtonBgOver;
  615. width: -12px;
  616. height: 18px;
  617. radius: 9px;
  618. textTop: 0px;
  619. style: TextStyle(defaultTextStyle) {
  620. font: font(12px);
  621. }
  622. ripple: RippleAnimation(defaultRippleAnimation) {
  623. color: lightButtonBgRipple;
  624. }
  625. }
  626. defaultTable: Table {
  627. headerBg: windowBgOver;
  628. borderFg: inputBorderFg;
  629. border: 1px;
  630. radius: 6px;
  631. labelMaxWidth: 0.5;
  632. smallButton: defaultTableSmallButton;
  633. defaultLabel: defaultTableLabel;
  634. defaultValue: defaultTableValue;
  635. }
  636. defaultScrollArea: ScrollArea {
  637. bg: scrollBg;
  638. bgOver: scrollBgOver;
  639. barBg: scrollBarBg;
  640. barBgOver: scrollBarBgOver;
  641. round: 2px;
  642. width: 10px;
  643. minHeight: 20px;
  644. deltax: 3px;
  645. deltat: 3px;
  646. deltab: 3px;
  647. topsh: 0px;
  648. bottomsh: 0px;
  649. shColor: shadowFg;
  650. duration: 150;
  651. hiding: 1000;
  652. }
  653. scrollBarMin: 40px;
  654. defaultSolidScroll: ScrollArea(defaultScrollArea) {
  655. deltax: 5px;
  656. width: 14px;
  657. deltat: 6px;
  658. deltab: 6px;
  659. hiding: 0;
  660. }
  661. defaultCheckboxIcon: icon {{ "default_checkbox_check", overviewCheckFgActive, point(4px, 7px) }};
  662. defaultCheck: Check {
  663. bg: transparent;
  664. untoggledFg: checkboxFg;
  665. toggledFg: windowBgActive;
  666. diameter: 22px;
  667. thickness: 2px;
  668. icon: defaultCheckboxIcon;
  669. duration: universalDuration;
  670. rippleAreaPadding: 8px;
  671. }
  672. defaultRadio: Radio {
  673. bg: transparent;
  674. untoggledFg: checkboxFg;
  675. toggledFg: windowBgActive;
  676. diameter: 22px;
  677. thickness: 2px;
  678. outerSkip: 10px; // * 0.1
  679. skip: 60px; // * 0.1
  680. duration: universalDuration;
  681. rippleAreaPadding: 8px;
  682. }
  683. defaultToggle: Toggle {
  684. toggledBg: windowBg;
  685. toggledFg: windowBgActive;
  686. untoggledBg: windowBg;
  687. untoggledFg: checkboxFg;
  688. duration: universalDuration;
  689. border: 2px;
  690. shift: 1px;
  691. diameter: 16px;
  692. width: 14px;
  693. xsize: 0px;
  694. vsize: 0px;
  695. vshift: 0px;
  696. stroke: 0px;
  697. rippleAreaPadding: 8px;
  698. }
  699. defaultCheckbox: Checkbox {
  700. textFg: windowFg;
  701. textFgActive: windowFg;
  702. width: -44px;
  703. margin: margins(8px, 8px, 8px, 8px);
  704. textPosition: point(10px, 2px);
  705. checkPosition: point(8px, 8px);
  706. style: defaultTextStyle;
  707. rippleAreaPosition: point(-8px, -8px);
  708. rippleBg: windowBgOver;
  709. rippleBgActive: lightButtonBgOver;
  710. ripple: defaultRippleAnimation;
  711. disabledOpacity: 0.5;
  712. }
  713. defaultRoundShadow: Shadow {
  714. left: icon {{ "round_shadow_left", windowShadowFg }};
  715. topLeft: icon {{ "round_shadow_top_left", windowShadowFg }};
  716. top: icon {{ "round_shadow_top", windowShadowFg }};
  717. topRight: icon {{ "round_shadow_top_left-flip_horizontal", windowShadowFg }};
  718. right: icon {{ "round_shadow_left-flip_horizontal", windowShadowFg }};
  719. bottomRight: icon {{ "round_shadow_bottom_left-flip_horizontal", windowShadowFg }};
  720. bottom: icon {{ "round_shadow_bottom", windowShadowFg }};
  721. bottomLeft: icon {{ "round_shadow_bottom_left", windowShadowFg }};
  722. extend: margins(3px, 2px, 3px, 4px);
  723. fallback: windowShadowFgFallback;
  724. }
  725. defaultEmptyShadow: Shadow {
  726. fallback: windowBg;
  727. }
  728. defaultPanelAnimation: PanelAnimation {
  729. startWidth: 0.5;
  730. widthDuration: 0.6;
  731. startHeight: 0.3;
  732. heightDuration: 0.9;
  733. startOpacity: 0.2;
  734. opacityDuration: 0.3;
  735. startFadeTop: 0.;
  736. fadeHeight: 0.2;
  737. fadeOpacity: 1.0;
  738. fadeBg: menuBg;
  739. shadow: defaultRoundShadow;
  740. }
  741. defaultMenuArrow: icon {{ "menu/submenu_arrow", windowBoldFg }};
  742. defaultMenuToggle: Toggle(defaultToggle) {
  743. untoggledFg: menuIconFg;
  744. }
  745. defaultMenuToggleOver: Toggle(defaultToggle) {
  746. untoggledFg: menuIconFgOver;
  747. }
  748. defaultMenuSeparator: MenuSeparator {
  749. padding: margins(0px, 5px, 0px, 5px);
  750. width: 1px;
  751. fg: menuSeparatorFg;
  752. }
  753. defaultMenu: Menu {
  754. skip: 0px;
  755. itemBg: windowBg;
  756. itemBgOver: windowBgOver;
  757. itemFg: windowFg;
  758. itemFgOver: windowFgOver;
  759. itemFgDisabled: menuFgDisabled;
  760. itemFgShortcut: windowSubTextFg;
  761. itemFgShortcutOver: windowSubTextFgOver;
  762. itemFgShortcutDisabled: menuFgDisabled;
  763. itemIconPosition: point(0px, 0px);
  764. itemPadding: margins(17px, 8px, 17px, 7px);
  765. itemRightSkip: 6px;
  766. itemStyle: defaultTextStyle;
  767. itemToggle: defaultMenuToggle;
  768. itemToggleOver: defaultMenuToggleOver;
  769. itemToggleShift: 0px;
  770. separator: defaultMenuSeparator;
  771. arrow: defaultMenuArrow;
  772. widthMin: 156px;
  773. widthMax: 300px;
  774. ripple: defaultRippleAnimation;
  775. }
  776. defaultPopupMenu: PopupMenu {
  777. shadow: defaultRoundShadow;
  778. animation: defaultPanelAnimation;
  779. scrollPadding: margins(0px, 8px, 0px, 8px);
  780. maxHeight: 0px;
  781. menu: defaultMenu;
  782. radius: 3px;
  783. duration: 150;
  784. showDuration: 200;
  785. }
  786. boxTextStyle: TextStyle(defaultTextStyle) {
  787. font: font(boxFontSize);
  788. }
  789. defaultInputField: InputField {
  790. textBg: windowBg;
  791. textBgActive: windowBg;
  792. textFg: windowFg;
  793. textMargins: margins(0px, 28px, 0px, 4px);
  794. textAlign: align(topleft);
  795. placeholderFg: windowSubTextFg;
  796. placeholderFgActive: windowActiveTextFg;
  797. placeholderFgError: attentionButtonFg;
  798. placeholderMargins: margins(0px, 0px, 0px, 0px);
  799. placeholderAlign: align(topleft);
  800. placeholderScale: 0.9;
  801. placeholderShift: -20px;
  802. placeholderFont: font(semibold 14px);
  803. duration: 150;
  804. borderFg: inputBorderFg;
  805. borderFgActive: activeLineFg;
  806. borderFgError: activeLineFgError;
  807. border: 1px;
  808. borderActive: 2px;
  809. borderRadius: 0px;
  810. borderDenominator: 1;
  811. style: boxTextStyle;
  812. menu: defaultPopupMenu;
  813. heightMin: 55px;
  814. heightMax: 148px;
  815. widthMin: 64px;
  816. }
  817. defaultInputFieldLimit: defaultSubTextLabel;
  818. defaultIconButton: IconButton {
  819. iconPosition: point(-1px, -1px);
  820. }
  821. defaultMultiSelectItem: MultiSelectItem {
  822. padding: margins(6px, 7px, 12px, 0px);
  823. maxWidth: 128px;
  824. height: 32px;
  825. style: defaultTextStyle;
  826. textBg: contactsBgOver;
  827. textFg: windowFg;
  828. textActiveBg: activeButtonBg;
  829. textActiveFg: activeButtonFg;
  830. deleteFg: activeButtonFg;
  831. deleteCross: CrossAnimation {
  832. size: 32px;
  833. skip: 10px;
  834. stroke: 1.5;
  835. minScale: 0.3;
  836. }
  837. duration: 150;
  838. minScale: 0.3;
  839. }
  840. defaultMultiSelectSearchField: InputField(defaultInputField) {
  841. textBg: transparent;
  842. textMargins: margins(2px, 7px, 2px, 0px);
  843. placeholderFg: placeholderFg;
  844. placeholderFgActive: placeholderFgActive;
  845. placeholderFgError: placeholderFgActive;
  846. placeholderMargins: margins(2px, 0px, 2px, 0px);
  847. placeholderScale: 0.;
  848. placeholderFont: normalFont;
  849. border: 0px;
  850. borderActive: 0px;
  851. heightMin: 32px;
  852. style: defaultTextStyle;
  853. }
  854. boxFieldSearchIcon: icon {{ "box_search", menuIconFg, point(10px, 9px) }};
  855. defaultMultiSelectSearchCancel: CrossButton {
  856. width: 44px;
  857. height: 44px;
  858. cross: CrossAnimation {
  859. size: 36px;
  860. skip: 12px;
  861. stroke: 1.5;
  862. minScale: 0.3;
  863. }
  864. crossFg: boxTitleCloseFg;
  865. crossFgOver: boxTitleCloseFgOver;
  866. crossPosition: point(4px, 4px);
  867. duration: 150;
  868. loadingPeriod: 1000;
  869. ripple: defaultRippleAnimationBgOver;
  870. }
  871. defaultMultiSelect: MultiSelect {
  872. bg: boxSearchBg;
  873. padding: margins(8px, 6px, 8px, 6px);
  874. maxHeight: 104px;
  875. scroll: ScrollArea(defaultSolidScroll) {
  876. deltat: 3px;
  877. deltab: 3px;
  878. round: 1px;
  879. width: 8px;
  880. deltax: 3px;
  881. hiding: 1000;
  882. }
  883. item: defaultMultiSelectItem;
  884. itemSkip: 8px;
  885. field: defaultMultiSelectSearchField;
  886. fieldMinWidth: 42px;
  887. fieldIcon: boxFieldSearchIcon;
  888. fieldIconSkip: 36px;
  889. fieldCancel: defaultMultiSelectSearchCancel;
  890. fieldCancelSkip: 40px;
  891. }
  892. widgetFadeDuration: 200;
  893. SettingsSlider {
  894. padding: pixels;
  895. height: pixels;
  896. barTop: pixels;
  897. barSkip: pixels;
  898. barStroke: pixels;
  899. barRadius: pixels;
  900. barFg: color;
  901. barFgActive: color;
  902. barSnapToLabel: bool;
  903. labelTop: pixels;
  904. labelStyle: TextStyle;
  905. labelFg: color;
  906. labelFgActive: color;
  907. strictSkip: pixels;
  908. duration: int;
  909. rippleBottomSkip: pixels;
  910. rippleBg: color;
  911. rippleBgActive: color;
  912. ripple: RippleAnimation;
  913. }
  914. defaultSettingsSlider: SettingsSlider {
  915. padding: 0px;
  916. height: 39px;
  917. barTop: 5px;
  918. barSkip: 3px;
  919. barStroke: 3px;
  920. barRadius: 1px;
  921. barFg: sliderBgInactive;
  922. barFgActive: sliderBgActive;
  923. labelTop: 17px;
  924. labelStyle: defaultTextStyle;
  925. labelFg: windowActiveTextFg;
  926. labelFgActive: windowActiveTextFg;
  927. duration: 150;
  928. }
  929. defaultTabsSlider: SettingsSlider(defaultSettingsSlider) {
  930. height: 43px;
  931. barTop: 40px;
  932. barSkip: 0px;
  933. barStroke: 6px;
  934. barRadius: 2px;
  935. barFg: transparent;
  936. barSnapToLabel: true;
  937. labelTop: 12px;
  938. labelStyle: semiboldTextStyle;
  939. labelFg: windowSubTextFg;
  940. labelFgActive: lightButtonFg;
  941. rippleBottomSkip: 1px;
  942. rippleBg: windowBgOver;
  943. rippleBgActive: lightButtonBgOver;
  944. ripple: defaultRippleAnimation;
  945. }
  946. defaultContinuousSlider: MediaSlider {
  947. width: 3px;
  948. activeFg: mediaPlayerActiveFg;
  949. inactiveFg: mediaPlayerInactiveFg;
  950. activeFgOver: mediaPlayerActiveFg;
  951. inactiveFgOver: mediaPlayerInactiveFg;
  952. activeFgDisabled: mediaPlayerInactiveFg;
  953. inactiveFgDisabled: windowBg;
  954. receivedTillFg: mediaPlayerInactiveFg;
  955. seekSize: size(9px, 9px);
  956. duration: 150;
  957. }
  958. defaultRoundCheckbox: RoundCheckbox {
  959. border: windowBg;
  960. bgActive: windowBgActive;
  961. width: 2px;
  962. duration: 160;
  963. bgDuration: 0.75;
  964. fgDuration: 1.;
  965. }
  966. defaultPeerListCheckIcon: icon {{
  967. "default_checkbox_check",
  968. overviewCheckFgActive,
  969. point(3px, 6px)
  970. }};
  971. defaultPeerListCheck: RoundCheckbox(defaultRoundCheckbox) {
  972. size: 20px;
  973. sizeSmall: 0.3;
  974. bgInactive: overviewCheckBg;
  975. bgActive: overviewCheckBgActive;
  976. check: defaultPeerListCheckIcon;
  977. }
  978. defaultPeerListCheckbox: RoundImageCheckbox {
  979. selectExtendTwice: 0px;
  980. imageRadius: 21px;
  981. imageSmallRadius: 18px;
  982. selectWidth: 2px;
  983. selectFg: windowBgActive;
  984. selectDuration: 150;
  985. check: defaultPeerListCheck;
  986. }
  987. defaultInnerDropdown: InnerDropdown {
  988. padding: margins(10px, 10px, 10px, 10px);
  989. shadow: defaultRoundShadow;
  990. animation: defaultPanelAnimation;
  991. duration: 150;
  992. showDuration: 200;
  993. bg: menuBg;
  994. scroll: defaultSolidScroll;
  995. }
  996. defaultDropdownMenu: DropdownMenu {
  997. wrap: InnerDropdown(defaultInnerDropdown) {
  998. scrollPadding: margins(0px, 8px, 0px, 8px);
  999. }
  1000. menu: defaultMenu;
  1001. }
  1002. defaultTooltip: Tooltip {
  1003. textBg: tooltipBg;
  1004. textFg: tooltipFg;
  1005. textStyle: defaultTextStyle;
  1006. textBorder: tooltipBorderFg;
  1007. textPadding: margins(5px, 2px, 5px, 2px);
  1008. shift: point(-20px, 20px);
  1009. skip: 10px;
  1010. widthMax: 800px;
  1011. linesMax: 12;
  1012. }
  1013. defaultImportantTooltip: ImportantTooltip {
  1014. bg: importantTooltipBg;
  1015. margin: margins(4px, 4px, 4px, 4px);
  1016. padding: margins(10px, 3px, 10px, 5px);
  1017. radius: 4px;
  1018. arrow: 4px;
  1019. arrowSkipMin: 24px;
  1020. arrowSkip: 66px;
  1021. shift: 12px;
  1022. duration: 200;
  1023. }
  1024. defaultImportantTooltipLabel: FlatLabel(defaultFlatLabel) {
  1025. style: TextStyle(defaultTextStyle) {
  1026. font: font(11px);
  1027. }
  1028. textFg: importantTooltipFg;
  1029. palette: TextPalette(defaultTextPalette) {
  1030. linkFg: importantTooltipFgLink;
  1031. selectLinkFg: importantTooltipFgLink;
  1032. }
  1033. minWidth: 36px;
  1034. }
  1035. BotKeyboardButton {
  1036. margin: pixels;
  1037. padding: pixels;
  1038. height: pixels;
  1039. textTop: pixels;
  1040. ripple: RippleAnimation;
  1041. }
  1042. TwoIconButton {
  1043. width: pixels;
  1044. height: pixels;
  1045. iconBelow: icon;
  1046. iconAbove: icon;
  1047. iconBelowOver: icon;
  1048. iconAboveOver: icon;
  1049. iconPosition: point;
  1050. rippleAreaPosition: point;
  1051. rippleAreaSize: pixels;
  1052. ripple: RippleAnimation;
  1053. }
  1054. historySendActionTypingDuration: 800;
  1055. historySendActionTypingHalfPeriod: 320;
  1056. historySendActionTypingDeltaTime: 150;
  1057. historySendActionTypingPosition: point(4px, -4px);
  1058. historySendActionTypingDelta: 6px;
  1059. historySendActionTypingLargeNumerator: 28px;
  1060. historySendActionTypingSmallNumerator: 16px;
  1061. historySendActionTypingDenominator: 12.;
  1062. historySendActionRecordDuration: 500;
  1063. historySendActionRecordPosition: point(1px, -4px);
  1064. historySendActionRecordDelta: 4px;
  1065. historySendActionRecordStrokeNumerator: 16px;
  1066. historySendActionRecordDenominator: 8.;
  1067. historySendActionUploadDuration: 500;
  1068. historySendActionUploadPosition: point(0px, -4px);
  1069. historySendActionUploadDelta: 5px;
  1070. historySendActionUploadStrokeNumerator: 16px;
  1071. historySendActionUploadSizeNumerator: 32px;
  1072. historySendActionUploadDenominator: 8.;
  1073. historySendActionChooseStickerDuration: 2000;
  1074. historySendActionChooseStickerPosition: point(1px, -10px);
  1075. historySendActionChooseStickerEyeWidth: 7px;
  1076. historySendActionChooseStickerEyeHeight: 11px;
  1077. historySendActionChooseStickerEyeStep: 2px;
  1078. PeerListItem {
  1079. left: pixels;
  1080. bottom: pixels;
  1081. height: pixels;
  1082. photoPosition: point;
  1083. namePosition: point;
  1084. nameStyle: TextStyle;
  1085. nameFg: color;
  1086. nameFgChecked: color;
  1087. statusPosition: point;
  1088. photoSize: pixels;
  1089. maximalWidth: pixels;
  1090. button: OutlineButton;
  1091. checkbox: RoundImageCheckbox;
  1092. disabledCheckFg: color;
  1093. statusFg: color;
  1094. statusFgOver: color;
  1095. statusFgActive: color;
  1096. }
  1097. PeerList {
  1098. padding: margins;
  1099. bg: color;
  1100. about: FlatLabel;
  1101. item: PeerListItem;
  1102. }
  1103. defaultPeerListButton: OutlineButton {
  1104. textBg: windowBg;
  1105. textBgOver: windowBgOver;
  1106. textFg: windowSubTextFg;
  1107. textFgOver: windowSubTextFgOver;
  1108. font: normalFont;
  1109. padding: margins(11px, 5px, 11px, 5px);
  1110. ripple: defaultRippleAnimation;
  1111. }
  1112. defaultPeerListItem: PeerListItem {
  1113. height: 58px;
  1114. photoPosition: point(12px, 6px);
  1115. namePosition: point(68px, 11px);
  1116. nameStyle: semiboldTextStyle;
  1117. nameFg: contactsNameFg;
  1118. nameFgChecked: windowActiveTextFg;
  1119. statusPosition: point(68px, 31px);
  1120. photoSize: 46px;
  1121. button: defaultPeerListButton;
  1122. checkbox: defaultPeerListCheckbox;
  1123. disabledCheckFg: menuIconFg;
  1124. statusFg: windowSubTextFg;
  1125. statusFgOver: windowSubTextFgOver;
  1126. statusFgActive: windowActiveTextFg;
  1127. }
  1128. defaultPeerListAbout: FlatLabel(defaultFlatLabel) {
  1129. minWidth: 240px;
  1130. textFg: membersAboutLimitFg;
  1131. align: align(top);
  1132. style: TextStyle(boxTextStyle) {
  1133. lineHeight: 22px;
  1134. }
  1135. }
  1136. defaultPeerList: PeerList {
  1137. padding: margins(0px, 0px, 0px, 0px);
  1138. bg: contactsBg;
  1139. about: defaultPeerListAbout;
  1140. item: defaultPeerListItem;
  1141. }
  1142. SearchFieldRow {
  1143. height: pixels;
  1144. padding: margins;
  1145. field: InputField;
  1146. fieldIcon: icon;
  1147. fieldIconSkip: pixels;
  1148. fieldCancel: CrossButton;
  1149. fieldCancelSkip: pixels;
  1150. }
  1151. LevelMeter {
  1152. height: pixels;
  1153. lineWidth: pixels;
  1154. lineSpacing: pixels;
  1155. lineCount: int;
  1156. activeFg: color;
  1157. inactiveFg: color;
  1158. }
  1159. defaultLevelMeter: LevelMeter {
  1160. height: 18px;
  1161. lineWidth: 3px;
  1162. lineSpacing: 5px;
  1163. lineCount: 44;
  1164. activeFg: mediaPlayerActiveFg;
  1165. inactiveFg: mediaPlayerInactiveFg;
  1166. }
  1167. menuToggleIcon: icon {{ "title_menu_dots", menuIconFg }};
  1168. menuToggleIconOver: icon {{ "title_menu_dots", menuIconFgOver }};
  1169. menuToggle: IconButton {
  1170. width: 40px;
  1171. height: 40px;
  1172. icon: menuToggleIcon;
  1173. iconOver: menuToggleIconOver;
  1174. iconPosition: point(16px, 10px);
  1175. rippleAreaPosition: point(0px, 0px);
  1176. rippleAreaSize: 40px;
  1177. ripple: defaultRippleAnimationBgOver;
  1178. }
  1179. backButtonIcon: icon {{ "box_button_back", menuIconFg }};
  1180. backButtonIconOver: icon {{ "box_button_back", menuIconFgOver }};
  1181. backButton: IconButton(defaultIconButton) {
  1182. width: 40px;
  1183. height: 40px;
  1184. icon: backButtonIcon;
  1185. iconOver: backButtonIconOver;
  1186. rippleAreaPosition: point(0px, 0px);
  1187. rippleAreaSize: 40px;
  1188. ripple: defaultRippleAnimationBgOver;
  1189. }
  1190. defaultSettingsToggle: Toggle(defaultToggle) {
  1191. untoggledFg: menuIconFg;
  1192. }
  1193. defaultSettingsToggleOver: Toggle(defaultSettingsToggle) {
  1194. untoggledFg: menuIconFgOver;
  1195. }
  1196. defaultSettingsRightLabel: FlatLabel(defaultFlatLabel) {
  1197. textFg: windowActiveTextFg;
  1198. style: boxTextStyle;
  1199. maxHeight: 20px;
  1200. }
  1201. defaultSettingsButton: SettingsButton {
  1202. textFg: windowBoldFg;
  1203. textFgOver: windowBoldFgOver;
  1204. textBg: windowBg;
  1205. textBgOver: windowBgOver;
  1206. style: boxTextStyle;
  1207. rightLabel: defaultSettingsRightLabel;
  1208. height: 20px;
  1209. padding: margins(22px, 10px, 22px, 8px);
  1210. toggle: defaultSettingsToggle;
  1211. toggleOver: defaultSettingsToggleOver;
  1212. toggleSkip: 22px;
  1213. ripple: defaultRippleAnimation;
  1214. }
  1215. defaultSideBarButton: SideBarButton {
  1216. textBg: sideBarBg;
  1217. textBgActive: sideBarBgActive;
  1218. textFg: sideBarTextFg;
  1219. textFgActive: sideBarTextFgActive;
  1220. badgeBg: sideBarBadgeBg;
  1221. badgeBgMuted: sideBarBadgeBgMuted;
  1222. badgeFg: sideBarBadgeFg;
  1223. ripple: RippleAnimation(defaultRippleAnimation) {
  1224. color: sideBarBgRipple;
  1225. }
  1226. }
  1227. defaultToastPalette: TextPalette(defaultTextPalette) {
  1228. linkFg: mediaviewTextLinkFg;
  1229. monoFg: mediaviewCaptionFg;
  1230. }
  1231. defaultToast: Toast {
  1232. style: defaultTextStyle;
  1233. palette: defaultToastPalette;
  1234. padding: margins(19px, 13px, 19px, 12px);
  1235. margin: margins(13px, 13px, 13px, 13px);
  1236. maxWidth: 480px;
  1237. durationFadeIn: 200;
  1238. durationFadeOut: 1000;
  1239. durationSlide: 160;
  1240. }
  1241. defaultMultilineToast: Toast(defaultToast) {
  1242. minWidth: 160px;
  1243. maxWidth: 360px;
  1244. }
  1245. // Windows specific title
  1246. windowTitleButtonWidth: 36px;
  1247. windowTitleHeight: 24px;
  1248. windowTitleButton: IconButton {
  1249. width: windowTitleButtonWidth;
  1250. height: windowTitleHeight;
  1251. iconPosition: point(0px, 0px);
  1252. }
  1253. windowTitleButtonClose: IconButton(windowTitleButton) {
  1254. width: windowTitleButtonWidth;
  1255. }
  1256. windowTitleButtonSize: size(windowTitleButtonWidth, windowTitleHeight);
  1257. defaultWindowTitle: WindowTitle {
  1258. height: windowTitleHeight;
  1259. bg: titleBg;
  1260. bgActive: titleBgActive;
  1261. fg: titleFg;
  1262. fgActive: titleFgActive;
  1263. style: TextStyle(defaultTextStyle) {
  1264. font: font(semibold 12px);
  1265. }
  1266. shadow: true;
  1267. oneSideControls: false;
  1268. minimize: IconButton(windowTitleButton) {
  1269. icon: icon {
  1270. { windowTitleButtonSize, titleButtonBg },
  1271. { "title_button_minimize", titleButtonFg },
  1272. };
  1273. iconOver: icon {
  1274. { windowTitleButtonSize, titleButtonBgOver },
  1275. { "title_button_minimize", titleButtonFgOver },
  1276. };
  1277. }
  1278. minimizeIconActive: icon {
  1279. { windowTitleButtonSize, titleButtonBgActive },
  1280. { "title_button_minimize", titleButtonFgActive },
  1281. };
  1282. minimizeIconActiveOver: icon {
  1283. { windowTitleButtonSize, titleButtonBgActiveOver },
  1284. { "title_button_minimize", titleButtonFgActiveOver },
  1285. };
  1286. maximize: IconButton(windowTitleButton) {
  1287. icon: icon {
  1288. { windowTitleButtonSize, titleButtonBg },
  1289. { "title_button_maximize", titleButtonFg },
  1290. };
  1291. iconOver: icon {
  1292. { windowTitleButtonSize, titleButtonBgOver },
  1293. { "title_button_maximize", titleButtonFgOver },
  1294. };
  1295. }
  1296. maximizeIconActive: icon {
  1297. { windowTitleButtonSize, titleButtonBgActive },
  1298. { "title_button_maximize", titleButtonFgActive },
  1299. };
  1300. maximizeIconActiveOver: icon {
  1301. { windowTitleButtonSize, titleButtonBgActiveOver },
  1302. { "title_button_maximize", titleButtonFgActiveOver },
  1303. };
  1304. restoreIcon: icon {
  1305. { windowTitleButtonSize, titleButtonBg },
  1306. { "title_button_restore", titleButtonFg },
  1307. };
  1308. restoreIconOver: icon {
  1309. { windowTitleButtonSize, titleButtonBgOver },
  1310. { "title_button_restore", titleButtonFgOver },
  1311. };
  1312. restoreIconActive: icon {
  1313. { windowTitleButtonSize, titleButtonBgActive },
  1314. { "title_button_restore", titleButtonFgActive },
  1315. };
  1316. restoreIconActiveOver: icon {
  1317. { windowTitleButtonSize, titleButtonBgActiveOver },
  1318. { "title_button_restore", titleButtonFgActiveOver },
  1319. };
  1320. close: IconButton(windowTitleButtonClose) {
  1321. icon: icon {
  1322. { windowTitleButtonSize, titleButtonCloseBg },
  1323. { "title_button_close", titleButtonCloseFg },
  1324. };
  1325. iconOver: icon {
  1326. { windowTitleButtonSize, titleButtonCloseBgOver },
  1327. { "title_button_close", titleButtonCloseFgOver },
  1328. };
  1329. }
  1330. closeIconActive: icon {
  1331. { windowTitleButtonSize, titleButtonCloseBgActive },
  1332. { "title_button_close", titleButtonCloseFgActive },
  1333. };
  1334. closeIconActiveOver: icon {
  1335. { windowTitleButtonSize, titleButtonCloseBgActiveOver },
  1336. { "title_button_close", titleButtonCloseFgActiveOver },
  1337. };
  1338. }
  1339. windowShadow: icon {{ "window_shadow", windowShadowFg }};
  1340. windowShadowShift: 1px;
  1341. callRadius: 6px;
  1342. callShadow: Shadow {
  1343. left: icon {{ "calls/call_shadow_left", windowShadowFg }};
  1344. topLeft: icon {{ "calls/call_shadow_top_left", windowShadowFg }};
  1345. top: icon {{ "calls/call_shadow_top", windowShadowFg }};
  1346. topRight: icon {{ "calls/call_shadow_top_left-flip_horizontal", windowShadowFg }};
  1347. right: icon {{ "calls/call_shadow_left-flip_horizontal", windowShadowFg }};
  1348. bottomRight: icon {{ "calls/call_shadow_top_left-flip_vertical-flip_horizontal", windowShadowFg }};
  1349. bottom: icon {{ "calls/call_shadow_top-flip_vertical", windowShadowFg }};
  1350. bottomLeft: icon {{ "calls/call_shadow_top_left-flip_vertical", windowShadowFg }};
  1351. extend: margins(9px, 8px, 9px, 10px);
  1352. fallback: windowShadowFgFallback;
  1353. }
  1354. sideBarButtonLockArcOffset: 2px;
  1355. sideBarButtonLockSize: size(9px, 10px);
  1356. sideBarButtonLockArcHeight: 3px;
  1357. sideBarButtonLockBlockHeight: 5px;
  1358. sideBarButtonLockPenWidth: 3px;
  1359. sideBarButtonLockPenWidthDivider: 2;
  1360. menuIconColor: windowBoldFg;
  1361. menuIconAttentionColor: attentionButtonFg;
  1362. menuIconSubmenuArrow: defaultMenuArrow;
  1363. menuWithIcons: Menu(defaultMenu) {
  1364. itemIconPosition: point(15px, 5px);
  1365. itemPadding: margins(54px, 8px, 17px, 8px);
  1366. arrow: menuIconSubmenuArrow;
  1367. }
  1368. menuWithIconsAttention: Menu(menuWithIcons) {
  1369. itemFg: attentionButtonFg;
  1370. itemFgOver: attentionButtonFgOver;
  1371. }
  1372. popupMenuWithIcons: PopupMenu(defaultPopupMenu) {
  1373. scrollPadding: margins(0px, 5px, 0px, 5px);
  1374. menu: menuWithIcons;
  1375. }
  1376. dropdownMenuWithIcons: DropdownMenu(defaultDropdownMenu) {
  1377. wrap: InnerDropdown(defaultInnerDropdown) {
  1378. scrollPadding: margins(0px, 5px, 0px, 5px);
  1379. }
  1380. menu: menuWithIcons;
  1381. }
  1382. universalRippleAnimation: RippleAnimation(defaultRippleAnimation) {
  1383. color: shadowFg;
  1384. }