1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

Fix minor EBN issues

This commit is contained in:
Yuri Chornoivan 2019-08-18 19:59:09 +03:00 committed by Michail Vourlakos
parent 2a85545db8
commit 15ab253efd
9 changed files with 30 additions and 11 deletions

View File

@ -556,7 +556,7 @@ void Synchronizer::loadLayouts()
for (const auto &layout : files) {
if (layout.contains(Layout::AbstractLayout::MultipleLayoutsName)) {
//! IMPORTANT: DONT ADD MultipleLayouts hidden file in layouts list
//! IMPORTANT: DON'T ADD MultipleLayouts hidden file in layouts list
continue;
}

View File

@ -371,7 +371,7 @@ int Theme::roundness(const QImage &svgImage, Plasma::Types::Location edge)
}
}
//! this needs investigation (the x2) I dont know if it is really needed
//! this needs investigation (the x2) I don't know if it is really needed
//! but it gives me the impression that returns better results
return round; ///**2*/;
}

View File

@ -205,7 +205,7 @@ bool ContextMenu::mousePressEvent(QMouseEvent *event)
}*/
//!plasma official code
//this is a workaround where Qt will fail to realise a mouse has been released
//this is a workaround where Qt will fail to realize a mouse has been released
// this happens if a window which does not accept focus spawns a new window that takes focus and X grab
// whilst the mouse is depressed

View File

@ -211,7 +211,7 @@ void Windows::updateRelevantLayouts()
{
QList<Latte::Layout::GenericLayout*> orphanedLayouts;
//! REMOVE Orphaned Relevant layouts that have been removed or they dont contain any Views anymore
//! REMOVE Orphaned Relevant layouts that have been removed or they don't contain any Views anymore
for (QHash<Latte::Layout::GenericLayout *, TrackedLayoutInfo *>::iterator i=m_layouts.begin(); i!=m_layouts.end(); ++i) {
bool hasView{false};
for (QHash<Latte::View *, TrackedViewInfo *>::iterator j=m_views.begin(); j!=m_views.end(); ++j) {

View File

@ -120,7 +120,7 @@ Loader{
//! provide a dark case scenario at all cases
return themeExtended.darkTheme;
} else {
//! default plasma theme shoud be better for panel transparency > 70
//! default plasma theme should be better for panel transparency > 70
return theme;
}
}

View File

@ -111,7 +111,7 @@ Item {
PropertyAnimation {
target: clickedRectangle
property: "width"
//! Dont animate above for length
//! Don't animate above for length
to: maxLength * multiplier
duration: 700
easing.type: Easing.Linear

View File

@ -1,3 +1,22 @@
/*
* Copyright 2018 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EXTRAS_H
#define EXTRAS_H

View File

@ -255,7 +255,7 @@ bool BackgroundCache::areaIsBusy(float bright1, float bright2)
//! the code is doing the following. It is not needed to calculate these values
//! for the entire image that would also be cpu costly. The function takes
//! the location of the area in the image for which we are interested.
//! The area is splitted in ten different Tiles and for each one its brightness
//! The area is split in ten different Tiles and for each one its brightness
//! is computed. The brightness average from these tiles provides the entire
//! area brightness. In order to indicate if this area is busy or not we
//! compare the minimum and the maximum values of brightness from these

View File

@ -520,7 +520,7 @@ Item{
//! HACK TO AVOID PIXELIZATION
//! WORKAROUND: When Effects are enabled e.g. BrightnessContrast, Colorize etc.
//! the icon appears pixelated. It is even most notable when zoomFactor === 1
//! I dont know enabling cached=true helps, but it does.
//! I don't know enabling cached=true helps, but it does.
cached: true
opacity: stateColorizer.opacity
@ -541,7 +541,7 @@ Item{
//! HACK TO AVOID PIXELIZATION
//! WORKAROUND: When Effects are enabled e.g. BrightnessContrast, Colorize etc.
//! the icon appears pixelated. It is even most notable when zoomFactor === 1
//! I dont know enabling cached=true helps, but it does.
//! I don't know enabling cached=true helps, but it does.
cached: true
source: badgesLoader.active ? badgesLoader : iconImageBuffer
@ -563,7 +563,7 @@ Item{
//! HACK TO AVOID PIXELIZATION
//! WORKAROUND: When Effects are enabled e.g. BrightnessContrast, Colorize etc.
//! the icon appears pixelated. It is even most notable when zoomFactor === 1
//! I dont know enabling cached=true helps, but it does.
//! I don't know enabling cached=true helps, but it does.
cached: true
source: badgesLoader.active ? badgesLoader : iconImageBuffer
@ -587,7 +587,7 @@ Item{
//! HACK TO AVOID PIXELIZATION
//! WORKAROUND: When Effects are enabled e.g. BrightnessContrast, Colorize etc.
//! the icon appears pixelated. It is even most notable when zoomFactor === 1
//! I dont know enabling cached=true helps, but it does.
//! I don't know enabling cached=true helps, but it does.
cached: true
source: badgesLoader.active ? badgesLoader : iconImageBuffer