mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Proofreading
This commit is contained in:
parent
61481794de
commit
17e92e72fc
11 changed files with 12 additions and 12 deletions
|
|
@ -17,7 +17,7 @@ import org.kde.plasma.components 3.0 as PlasmaComponents
|
|||
import org.kde.plasma.private.mobileshell as MobileShell
|
||||
|
||||
/**
|
||||
* Root element that contains all of the ActionDrawer's contents, and is anchored to the screen.
|
||||
* Root element that contains all the ActionDrawer's contents, and is anchored to the screen.
|
||||
*/
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import org.kde.plasma.components 3.0 as PlasmaComponents
|
|||
import org.kde.kirigami 2.20 as Kirigami
|
||||
|
||||
/**
|
||||
* Root element that contains all of the ActionDrawer's contents, and is anchored to the screen.
|
||||
* Root element that contains all the ActionDrawer's contents, and is anchored to the screen.
|
||||
*/
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import org.kde.kirigami as Kirigami
|
|||
* Being it a FullScreenOverlay, no event is delivered to underlying components until it's closed.
|
||||
*
|
||||
* - property relatedTo: Item to which the popup is related; the popup will spawn either above or below it, depending on its y value.
|
||||
* If no item is supplied, the popup will spawn at the centre of the screen.
|
||||
* If no item is supplied, the popup will spawn at the center of the screen.
|
||||
* - property title: The title for the menu.
|
||||
* - property menuActions: The menu will be composed of these actions.
|
||||
* - function showOverlay(): Spawns the popup.
|
||||
|
|
@ -48,7 +48,7 @@ NanoShell.FullScreenOverlay {
|
|||
readonly property point coordinates: {
|
||||
if (relatedTo) { // Place next to Item
|
||||
return mapFromGlobal(mappedGlobalCoordinates.x, mappedGlobalCoordinates.y);
|
||||
} else { // Place at the centre of the screen
|
||||
} else { // Place at the center of the screen
|
||||
return Qt.point((overlay.width - width) / 2, (overlay.height - height) / 2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ Item {
|
|||
readonly property string replySubmitButtonText: model.replySubmitButtonText || ""
|
||||
readonly property string replySubmitButtonIconName: model.replySubmitButtonIconName || ""
|
||||
|
||||
// configure button on every single notifications is bit overwhelming
|
||||
// configure button on every single notifications is a bit overwhelming
|
||||
readonly property bool configurable: !inGroup && model.configurable
|
||||
|
||||
readonly property bool dismissable: model.type === NotificationManager.Notifications.JobType
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ This is the paged homescreen for Plasma Mobile.
|
|||
|
||||
Most of the homescreen is in C++ in order to keep logic together, with QML only responsible for the display and user input.
|
||||
|
||||
As such, all of the positioning and placement of delegates on the screen are top down from the model, as well as drag and drop behaviour.
|
||||
As such, all the positioning and placement of delegates on the screen are top down from the model, as well as drag and drop behaviour.
|
||||
|
||||
#### TODO
|
||||
- BUG: If an app gets uninstalled, the homescreen UI needs to ensure that delegates are updated
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ bool FavouritesModel::dropPositionIsEdge(qreal x, qreal y) const
|
|||
qreal currentPos = startPosition;
|
||||
|
||||
for (int i = 0; i < m_delegates.size(); i++) {
|
||||
// if it is within the centre 70% of a delegate, it is not at an edge
|
||||
// if it is within the center 70% of a delegate, it is not at an edge
|
||||
if (pos >= (currentPos + cellLength * 0.15) && pos <= (currentPos + cellLength * 0.85)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Folio.WidgetContainer {
|
|||
width: implicitWidth
|
||||
height: implicitHeight
|
||||
|
||||
// prevent widget contents from going outside of the container
|
||||
// prevent widget contents from going outside the container
|
||||
clip: true
|
||||
|
||||
function updateVisualApplet() {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ MobileShell.NavigationPanel {
|
|||
|
||||
enabled: Keyboards.KWinVirtualKeyboard.active || WindowPlugin.WindowUtil.hasCloseableActiveWindow
|
||||
iconSource: Keyboards.KWinVirtualKeyboard.active ? "go-down-symbolic" : "mobile-close-app"
|
||||
// mobile-close-app (from plasma-frameworks) seems to have less margins than icons from breeze-icons
|
||||
// mobile-close-app (from plasma-frameworks) seems to have fewer margins than icons from breeze-icons
|
||||
iconSizeFactor: Keyboards.KWinVirtualKeyboard.active ? 1 : 0.75
|
||||
|
||||
onTriggered: {
|
||||
|
|
|
|||
|
|
@ -43,4 +43,4 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
#endif // GCONFITEM_H
|
||||
#endif // GSETTINGSITEM_H
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ MouseArea {
|
|||
// only show header once task switcher is opened
|
||||
showHeader: !taskSwitcherState.gestureInProgress && !taskSwitcherHelpers.currentlyBeingClosed && !taskSwitcherHelpers.isInTaskScrubMode
|
||||
|
||||
// darken effect as task gets away from the centre of the screen
|
||||
// darken effect as task gets away from the center of the screen
|
||||
darken: {
|
||||
const distFromCentreProgress = Math.abs(x - repeater.leftMargin) / taskSwitcherHelpers.taskWidth;
|
||||
const upperBoundAdjust = Math.min(0.5, distFromCentreProgress) - 0.2;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ QtObject {
|
|||
// whether the lockscreen was passwordless
|
||||
property bool passwordless: false // TODO true
|
||||
|
||||
// whether the device can login with fingerprint
|
||||
// whether the device can log in with fingerprint
|
||||
readonly property bool isFingerprintSupported: authenticator.authenticatorTypes & ScreenLocker.Authenticator.Fingerprint
|
||||
|
||||
signal reset()
|
||||
|
|
|
|||
Loading…
Reference in a new issue