Skip to content

Commit 2388df7

Browse files
committed
Fix Pressing tab register as a search event for pinned apps and adjust spacing + Update Readme
1 parent aae9793 commit 2388df7

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<a href="https://github.com/prateekmedia/Menu11/releases"><img alt="GitHub release" src="https://img.shields.io/github/v/release/prateekmedia/Menu11"/></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/github/license/prateekmedia/Menu11?color=blue"/></a> <a href="#installing-manually"><img alt="Install Manually" src="https://img.shields.io/badge/Install Manually-git-blue"/></a>
55
</p>
66
<p align="center">
7-
<img src="https://user-images.githubusercontent.com/41370460/125826889-48b79454-11d6-49db-9723-0b643a6a1840.jpg" width=400>
7+
<img src="https://user-images.githubusercontent.com/41370460/126040466-a56d378f-9e07-4a4a-8aa3-992f070be138.jpg" width=400>
88
</p>
99

1010
#### *Special Thanks to*
11-
- [adhe](https://www.opencode.net/adhe) for Creating [MenuZ](https://store.kde.org/p/1367167/)
12-
- [Nayam Amarshe](https://github.com/NayamAmarshe) for improving the design to look more like windows 11 menu, and for guiding me.
11+
- [Prateek SU](https://github.com/prateekmedia) / Me for creating [Menu 11](https://github.com/prateekmedia/) by forking [Menu Z](https://store.kde.org/p/1367167/) and for continuously adding and improving features.
12+
- [Nayam Amarshe](https://github.com/NayamAmarshe) for improving the design.
1313
- [John Vincent](https://github.com/TenSeventy7) for improving grid view of recommended section.
14-
- [Lupert Everett](https://github.com/LupertEverett) for improving footer section and add ability to add/remove icons in footer.
14+
- [Lupert Everett](https://github.com/LupertEverett) for adding multiple footer icons.
1515
<a href="https://github.com/prateekmedia/Menu11/graphs/contributors"><img alt="Know More" src="https://shields.io/badge/-Know More-blue"/></a>
1616

1717
<h2 align="center">Installing Manually</h2>

contents/ui/ItemGridDelegate.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Item {
7777
anchors {
7878
left: icon.right
7979
leftMargin: PlasmaCore.Units.smallSpacing * 4
80-
rightMargin: PlasmaCore.Units.smallSpacing * 2
80+
rightMargin: leftMargin / 2
8181
verticalCenter: parent.verticalCenter
8282
}
8383
spacing: 0

contents/ui/MainColumnItem.qml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Item {
183183
runnerModel.query = text;
184184
newTextQuery(text)
185185
}
186-
186+
187187
PlasmaCore.IconItem {
188188
id: searchIconItem
189189
source: "search"
@@ -233,7 +233,7 @@ Item {
233233
id: mainLabelGrid
234234
anchors.top: plasmoid.configuration.alwaysShowSearchBar ? searchField.bottom : parent.top
235235
anchors.leftMargin: units.largeSpacing * 3
236-
anchors.topMargin: plasmoid.configuration.alwaysShowSearchBar ? 0.4 * units.largeSpacing : 0
236+
anchors.topMargin: plasmoid.configuration.alwaysShowSearchBar ? units.largeSpacing : 0
237237
anchors.left: parent.left
238238
x: units.smallSpacing
239239
elide: Text.ElideRight
@@ -290,6 +290,7 @@ Item {
290290
}
291291

292292
anchors {
293+
topMargin: units.smallSpacing
293294
verticalCenter: mainLabelGrid.verticalCenter
294295
rightMargin: units.largeSpacing * 3
295296
leftMargin: units.largeSpacing * 3
@@ -305,7 +306,7 @@ Item {
305306
top: searching ? searchField.bottom : mainLabelGrid.bottom
306307
leftMargin: units.largeSpacing * 1.6
307308
rightMargin: units.largeSpacing
308-
topMargin: units.largeSpacing
309+
topMargin: units.largeSpacing * 0.7
309310
left: parent.left
310311
right: parent.right
311312
bottom: searching ? parent.bottom : showAllApps ? footer.top : undefined
@@ -387,6 +388,9 @@ Item {
387388
searchField.backspace();
388389
else
389390
searchField.focus = true
391+
} else if (event.key == Qt.Key_Tab) {
392+
event.accepted = true;
393+
if (!searching && !showAllApps) documentsFavoritesGrid.tryActivate(0, 0);
390394
} else if (event.key == Qt.Key_Escape) {
391395
event.accepted = true;
392396
if (searching) {
@@ -504,7 +508,7 @@ Item {
504508
left: parent.left
505509
right: parent.right
506510
bottomMargin: 0
507-
topMargin: units.largeSpacing
511+
topMargin: units.largeSpacing * 0.7
508512
}
509513

510514
increaseLeftSpacings: true

0 commit comments

Comments
 (0)