mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-28 17:42:43 +00:00
Add some more colors for theming.
This commit is contained in:
parent
8ee5c70708
commit
75fdd5315f
@ -93,9 +93,14 @@ placeholderFg: windowSubTextFg; // default input field placeholder when field is
|
|||||||
placeholderFgActive: #aaaaaa; // default input field placeholder when field is focused
|
placeholderFgActive: #aaaaaa; // default input field placeholder when field is focused
|
||||||
inputBorderFg: #e0e0e0; // default input field bottom border (like in code input field when you log in and field is not focused)
|
inputBorderFg: #e0e0e0; // default input field bottom border (like in code input field when you log in and field is not focused)
|
||||||
filterInputBorderFg: #54c3f3; // default rounded input field border (like in chats list search field when field is focused)
|
filterInputBorderFg: #54c3f3; // default rounded input field border (like in chats list search field when field is focused)
|
||||||
filterInputInactiveBg: windowBgOver; // default rounded input field background (like in chats list search field when field is inactive)
|
filterInputActiveBg: windowBg; // default rounded input field active background (like in chats list search field when field is focused)
|
||||||
|
filterInputInactiveBg: windowBgOver; // default rounded input field inactive background (like in chats list search field when field is inactive)
|
||||||
checkboxFg: #b3b3b3; // default unchecked checkbox rounded rectangle
|
checkboxFg: #b3b3b3; // default unchecked checkbox rounded rectangle
|
||||||
|
|
||||||
|
botKbBg: menuBgOver; // bot keyboard button background
|
||||||
|
botKbDownBg: menuBgRipple; // bot keyboard button ripple effect
|
||||||
|
botKbColor: windowBoldFgOver; // bot keyboard button text
|
||||||
|
|
||||||
sliderBgInactive: #e1eaef; // default slider not active bar (like in Settings when you choose interface scale or custom notifications count)
|
sliderBgInactive: #e1eaef; // default slider not active bar (like in Settings when you choose interface scale or custom notifications count)
|
||||||
sliderBgActive: windowBgActive; // default slider active bar (like in Settings when you choose interface scale or custom notifications count)
|
sliderBgActive: windowBgActive; // default slider active bar (like in Settings when you choose interface scale or custom notifications count)
|
||||||
|
|
||||||
@ -232,8 +237,8 @@ dialogsUnreadBgActive: dialogsTextFgActive; // chat list unread badge background
|
|||||||
dialogsUnreadBgMutedActive: dialogsDraftFgActive; // chat list unread badge background for muted chat for current (active) chat
|
dialogsUnreadBgMutedActive: dialogsDraftFgActive; // chat list unread badge background for muted chat for current (active) chat
|
||||||
dialogsUnreadFgActive: dialogsBgActive; // chat list unread badge text for current (active) chat
|
dialogsUnreadFgActive: dialogsBgActive; // chat list unread badge text for current (active) chat
|
||||||
|
|
||||||
dialogsRippleBg: windowBgRipple;
|
dialogsRippleBg: windowBgRipple; // chat list background ripple effect
|
||||||
dialogsRippleBgActive: activeButtonBgRipple;
|
dialogsRippleBgActive: activeButtonBgRipple; // chat list background ripple effect for current (active) chat
|
||||||
|
|
||||||
dialogsForwardBg: dialogsBgActive; // forwarding panel background (when forwarding messages in the smallest window size)
|
dialogsForwardBg: dialogsBgActive; // forwarding panel background (when forwarding messages in the smallest window size)
|
||||||
dialogsForwardFg: dialogsNameFgActive; // forwarding panel text (when forwarding messages in the smallest window size)
|
dialogsForwardFg: dialogsNameFgActive; // forwarding panel text (when forwarding messages in the smallest window size)
|
||||||
@ -452,7 +457,9 @@ historyComposeButtonBgOver: windowBgOver; // unblock / join channel / mute chann
|
|||||||
historyComposeButtonBgRipple: windowBgRipple; // unblock / join channel / mute channel button ripple effect
|
historyComposeButtonBgRipple: windowBgRipple; // unblock / join channel / mute channel button ripple effect
|
||||||
|
|
||||||
// overview
|
// overview
|
||||||
overviewCheckBg: #00000040; // shared files / links checkbox background for not selected rows when some rows are selected
|
overviewCheckBg: #00000040; // shared media / files / links checkbox background for not selected rows when some rows are selected
|
||||||
|
overviewCheckBgActive: windowBgActive; // shared media / files / links checkbox background for selected rows
|
||||||
|
overviewCheckBorder: windowBg; // shared media round checkbox border
|
||||||
overviewCheckFg: windowBg; // shared files / links checkbox icon for not selected rows when some rows are selected
|
overviewCheckFg: windowBg; // shared files / links checkbox icon for not selected rows when some rows are selected
|
||||||
overviewCheckFgActive: windowBg; // shared files / links checkbox icon for selected rows
|
overviewCheckFgActive: windowBg; // shared files / links checkbox icon for selected rows
|
||||||
overviewPhotoSelectOverlay: #40ace333; // shared photos / videos / links fill for selected rows
|
overviewPhotoSelectOverlay: #40ace333; // shared photos / videos / links fill for selected rows
|
||||||
|
@ -2249,8 +2249,6 @@ namespace {
|
|||||||
prepareCorners(EmojiHoverCorners, st::buttonRadius, st::emojiPanHover);
|
prepareCorners(EmojiHoverCorners, st::buttonRadius, st::emojiPanHover);
|
||||||
prepareCorners(StickerHoverCorners, st::buttonRadius, st::emojiPanHover);
|
prepareCorners(StickerHoverCorners, st::buttonRadius, st::emojiPanHover);
|
||||||
prepareCorners(BotKeyboardCorners, st::buttonRadius, st::botKbBg);
|
prepareCorners(BotKeyboardCorners, st::buttonRadius, st::botKbBg);
|
||||||
prepareCorners(BotKeyboardOverCorners, st::buttonRadius, st::botKbOverBg);
|
|
||||||
prepareCorners(BotKeyboardDownCorners, st::buttonRadius, st::botKbDownBg);
|
|
||||||
prepareCorners(PhotoSelectOverlayCorners, st::buttonRadius, st::overviewPhotoSelectOverlay);
|
prepareCorners(PhotoSelectOverlayCorners, st::buttonRadius, st::overviewPhotoSelectOverlay);
|
||||||
|
|
||||||
prepareCorners(Doc1Corners, st::buttonRadius, st::msgFile1Bg);
|
prepareCorners(Doc1Corners, st::buttonRadius, st::msgFile1Bg);
|
||||||
|
@ -330,10 +330,6 @@ msgBotKbButton: BotKeyboardButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
botKbDuration: 200;
|
botKbDuration: 200;
|
||||||
botKbBg: menuBgOver;
|
|
||||||
botKbOverBg: menuBgOver;
|
|
||||||
botKbDownBg: menuBgRipple;
|
|
||||||
botKbColor: windowBoldFgOver;
|
|
||||||
botKbStyle: TextStyle(defaultTextStyle) {
|
botKbStyle: TextStyle(defaultTextStyle) {
|
||||||
font: font(15px semibold);
|
font: font(15px semibold);
|
||||||
linkFont: font(15px semibold);
|
linkFont: font(15px semibold);
|
||||||
@ -344,7 +340,9 @@ botKbButton: BotKeyboardButton {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
textTop: 9px;
|
textTop: 9px;
|
||||||
ripple: defaultRippleAnimation;
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
||||||
|
color: botKbDownBg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
botKbTinyButton: BotKeyboardButton {
|
botKbTinyButton: BotKeyboardButton {
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
|
@ -50,8 +50,6 @@ enum RoundCorners {
|
|||||||
EmojiHoverCorners,
|
EmojiHoverCorners,
|
||||||
StickerHoverCorners,
|
StickerHoverCorners,
|
||||||
BotKeyboardCorners,
|
BotKeyboardCorners,
|
||||||
BotKeyboardOverCorners,
|
|
||||||
BotKeyboardDownCorners,
|
|
||||||
PhotoSelectOverlayCorners,
|
PhotoSelectOverlayCorners,
|
||||||
|
|
||||||
Doc1Corners,
|
Doc1Corners,
|
||||||
|
@ -53,6 +53,8 @@ overviewLeftMax: 42px;
|
|||||||
overviewCheckPressedSize: 0.8;
|
overviewCheckPressedSize: 0.8;
|
||||||
overviewCheck: RoundCheckbox(defaultRoundCheckbox) {
|
overviewCheck: RoundCheckbox(defaultRoundCheckbox) {
|
||||||
bgInactive: overviewCheckBg;
|
bgInactive: overviewCheckBg;
|
||||||
|
bgActive: overviewCheckBgActive;
|
||||||
|
border: overviewCheckBorder;
|
||||||
size: 29px;
|
size: 29px;
|
||||||
sizeSmall: 0.3;
|
sizeSmall: 0.3;
|
||||||
check: icon {{ "overview_photo_check", overviewCheckFgActive, point(4px, 8px) }};
|
check: icon {{ "overview_photo_check", overviewCheckFgActive, point(4px, 8px) }};
|
||||||
@ -65,7 +67,7 @@ overviewPhotoMinSize: minPhotoSize;
|
|||||||
overviewVideoBg: imageBg;
|
overviewVideoBg: imageBg;
|
||||||
|
|
||||||
overviewFileThumbBg: imageBg;
|
overviewFileThumbBg: imageBg;
|
||||||
overviewFileChecked: windowBgActive;
|
overviewFileChecked: overviewCheckBgActive;
|
||||||
overviewFileCheck: overviewCheckBg;
|
overviewFileCheck: overviewCheckBg;
|
||||||
overviewFileExtPadding: 5px;
|
overviewFileExtPadding: 5px;
|
||||||
overviewFileExtTop: 24px;
|
overviewFileExtTop: 24px;
|
||||||
@ -129,7 +131,7 @@ overviewLinksCheck: icon {
|
|||||||
{ "overview_links_check", overviewCheckFg, point(4px, 5px) },
|
{ "overview_links_check", overviewCheckFg, point(4px, 5px) },
|
||||||
};
|
};
|
||||||
overviewLinksChecked: icon {
|
overviewLinksChecked: icon {
|
||||||
{ "overview_links_check_bg", windowBgActive },
|
{ "overview_links_check_bg", overviewCheckBgActive },
|
||||||
{ "overview_links_check", overviewCheckFgActive, point(4px, 5px) },
|
{ "overview_links_check", overviewCheckFgActive, point(4px, 5px) },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -742,7 +742,8 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
|
|||||||
int32 nameleft = 0, nametop = 0, nameright = 0, statustop = 0, datetop = -1;
|
int32 nameleft = 0, nametop = 0, nameright = 0, statustop = 0, datetop = -1;
|
||||||
bool wthumb = withThumb();
|
bool wthumb = withThumb();
|
||||||
|
|
||||||
if (_data->song()) {
|
auto isSong = (_data->song() != nullptr);
|
||||||
|
if (isSong) {
|
||||||
nameleft = _st.songPadding.left() + _st.songThumbSize + _st.songPadding.right();
|
nameleft = _st.songPadding.left() + _st.songThumbSize + _st.songPadding.right();
|
||||||
nameright = _st.songPadding.left();
|
nameright = _st.songPadding.left();
|
||||||
nametop = _st.songNameTop;
|
nametop = _st.songNameTop;
|
||||||
@ -873,7 +874,7 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
|
|||||||
|
|
||||||
if (clip.intersects(rtlrect(nameleft, statustop, availwidth, st::normalFont->height, _width))) {
|
if (clip.intersects(rtlrect(nameleft, statustop, availwidth, st::normalFont->height, _width))) {
|
||||||
p.setFont(st::normalFont);
|
p.setFont(st::normalFont);
|
||||||
p.setPen(st::mediaInFg);
|
p.setPen((isSong && selected) ? st::mediaInFgSelected : st::mediaInFg);
|
||||||
p.drawTextLeft(nameleft, statustop, _width, _status.text());
|
p.drawTextLeft(nameleft, statustop, _width, _status.text());
|
||||||
}
|
}
|
||||||
if (datetop >= 0 && clip.intersects(rtlrect(nameleft, datetop, _datew, st::normalFont->height, _width))) {
|
if (datetop >= 0 && clip.intersects(rtlrect(nameleft, datetop, _datew, st::normalFont->height, _width))) {
|
||||||
|
@ -564,7 +564,7 @@ defaultInputFont: font(17px);
|
|||||||
defaultFlatInput: FlatInput {
|
defaultFlatInput: FlatInput {
|
||||||
textColor: windowFg;
|
textColor: windowFg;
|
||||||
bgColor: filterInputInactiveBg;
|
bgColor: filterInputInactiveBg;
|
||||||
bgActive: windowBg;
|
bgActive: filterInputActiveBg;
|
||||||
width: 210px;
|
width: 210px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
align: align(left);
|
align: align(left);
|
||||||
|
Loading…
Reference in New Issue
Block a user