tdesktop/Telegram/SourceFiles/iv/iv.style

101 lines
3.2 KiB
Plaintext
Raw Normal View History

2023-12-04 11:48:17 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
using "ui/basic.style";
using "ui/widgets/widgets.style";
ivTitleHeight: 24px;
ivTitleIconShift: point(0px, 0px);
ivTitleButton: IconButton(windowTitleButton) {
height: ivTitleHeight;
iconPosition: ivTitleIconShift;
}
ivTitleButtonClose: IconButton(windowTitleButtonClose) {
height: ivTitleHeight;
iconPosition: ivTitleIconShift;
}
ivTitleButtonSize: size(windowTitleButtonWidth, ivTitleHeight);
ivTitle: WindowTitle(defaultWindowTitle) {
height: ivTitleHeight;
style: TextStyle(defaultTextStyle) {
font: font(semibold 12px);
}
shadow: false;
minimize: IconButton(ivTitleButton) {
icon: icon {
{ ivTitleButtonSize, titleButtonBg },
{ "title_button_minimize", titleButtonFg, ivTitleIconShift },
};
iconOver: icon {
{ ivTitleButtonSize, titleButtonBgOver },
{ "title_button_minimize", titleButtonFgOver, ivTitleIconShift },
};
}
minimizeIconActive: icon {
{ ivTitleButtonSize, titleButtonBgActive },
{ "title_button_minimize", titleButtonFgActive, ivTitleIconShift },
};
minimizeIconActiveOver: icon {
{ ivTitleButtonSize, titleButtonBgActiveOver },
{ "title_button_minimize", titleButtonFgActiveOver, ivTitleIconShift },
};
maximize: IconButton(windowTitleButton) {
icon: icon {
{ ivTitleButtonSize, titleButtonBg },
{ "title_button_maximize", titleButtonFg, ivTitleIconShift },
};
iconOver: icon {
{ ivTitleButtonSize, titleButtonBgOver },
{ "title_button_maximize", titleButtonFgOver, ivTitleIconShift },
};
}
maximizeIconActive: icon {
{ ivTitleButtonSize, titleButtonBgActive },
{ "title_button_maximize", titleButtonFgActive, ivTitleIconShift },
};
maximizeIconActiveOver: icon {
{ ivTitleButtonSize, titleButtonBgActiveOver },
{ "title_button_maximize", titleButtonFgActiveOver, ivTitleIconShift },
};
restoreIcon: icon {
{ ivTitleButtonSize, titleButtonBg },
{ "title_button_restore", titleButtonFg, ivTitleIconShift },
};
restoreIconOver: icon {
{ ivTitleButtonSize, titleButtonBgOver },
{ "title_button_restore", titleButtonFgOver, ivTitleIconShift },
};
restoreIconActive: icon {
{ ivTitleButtonSize, titleButtonBgActive },
{ "title_button_restore", titleButtonFgActive, ivTitleIconShift },
};
restoreIconActiveOver: icon {
{ ivTitleButtonSize, titleButtonBgActiveOver },
{ "title_button_restore", titleButtonFgActiveOver, ivTitleIconShift },
};
close: IconButton(windowTitleButtonClose) {
icon: icon {
{ ivTitleButtonSize, titleButtonCloseBg },
{ "title_button_close", titleButtonCloseFg, ivTitleIconShift },
};
iconOver: icon {
{ ivTitleButtonSize, titleButtonCloseBgOver },
{ "title_button_close", titleButtonCloseFgOver, ivTitleIconShift },
};
}
closeIconActive: icon {
{ ivTitleButtonSize, titleButtonCloseBgActive },
{ "title_button_close", titleButtonCloseFgActive, ivTitleIconShift },
};
closeIconActiveOver: icon {
{ ivTitleButtonSize, titleButtonCloseBgActiveOver },
{ "title_button_close", titleButtonCloseFgActiveOver, ivTitleIconShift },
};
}
ivTitleExpandedHeight: 76px;