mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
search merged to os x version, fixed some retina render, custom notifies code moved to window module
This commit is contained in:
@@ -75,11 +75,7 @@ void Slider::setSelected(int32 sel) {
|
||||
void Slider::paintEvent(QPaintEvent *e) {
|
||||
QPainter p(this);
|
||||
|
||||
p.setPen(_st.color->p);
|
||||
int32 from = (height() - _st.thikness) / 2, to = from + _st.thikness;
|
||||
for (int32 i = from; i < to; ++i) {
|
||||
p.drawLine(0, i, width() - 1, i);
|
||||
}
|
||||
p.fillRect(0, (height() - _st.thikness) / 2, width(), _st.thikness, _st.color->b);
|
||||
|
||||
int32 x = qFloor(_sel * float64(width() - _st.bar.pxWidth()) / (_count - 1)), y = (height() - _st.bar.pxHeight()) / 2;
|
||||
p.drawPixmap(QPoint(x, y), App::sprite(), _st.bar);
|
||||
@@ -908,7 +904,7 @@ void SettingsInner::onSoundNotify() {
|
||||
void SettingsInner::onDesktopNotify() {
|
||||
cSetDesktopNotify(_desktopNotify.checked());
|
||||
if (!_desktopNotify.checked()) {
|
||||
App::wnd()->psClearNotify();
|
||||
App::wnd()->notifyClear();
|
||||
}
|
||||
App::writeUserConfig();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user