2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Alpha 1.0.1: resize chats list with mouse press-and-drag.

Also fixed drag-n-drop images from Firefox in Windows.
Also some additional colors added to themes palette:
HistoryToDown button now has separate colors.
Windows title bar and buttons have separate active/inactive colors.
This commit is contained in:
John Preston
2017-01-16 16:27:11 +03:00
parent 47aa03ce37
commit 041e366df7
23 changed files with 185 additions and 80 deletions

View File

@@ -425,6 +425,7 @@ void LayerStackWidget::onLayerClosed(LayerWidget *layer) {
if (_layers.size() == 1) {
hideCurrent();
} else {
if (layer->inFocusChain()) setFocus();
layer->hide();
_layers.pop_back();
layer = currentLayer();
@@ -527,6 +528,7 @@ void LayerStackWidget::showBox(object_ptr<BoxContent> box) {
_layers.pop_front();
removingLayer->setClosing();
if (removingLayer->inFocusChain()) setFocus();
removingLayer->hide();
removingLayer->deleteLater();
}
@@ -616,6 +618,7 @@ void LayerStackWidget::appendBox(object_ptr<BoxContent> box) {
LayerWidget *LayerStackWidget::pushBox(object_ptr<BoxContent> box) {
auto oldLayer = currentLayer();
if (oldLayer) {
if (oldLayer->inFocusChain()) setFocus();
oldLayer->hide();
}
auto layer = object_ptr<AbstractBox>(this, std_::move(box));
@@ -649,6 +652,7 @@ void LayerStackWidget::prependBox(object_ptr<BoxContent> box) {
void LayerStackWidget::clearLayers() {
for (auto layer : base::take(_layers)) {
layer->setClosing();
if (layer->inFocusChain()) setFocus();
layer->hide();
layer->deleteLater();
}