Skip to content

Commit

Permalink
Fix Pressing tab register as a search event for pinned apps and adjus…
Browse files Browse the repository at this point in the history
…t spacing + Update Readme
  • Loading branch information
prateekmedia committed Jul 17, 2021
1 parent aae9793 commit 2388df7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<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>
</p>
<p align="center">
<img src="https://user-images.githubusercontent.com/41370460/125826889-48b79454-11d6-49db-9723-0b643a6a1840.jpg" width=400>
<img src="https://user-images.githubusercontent.com/41370460/126040466-a56d378f-9e07-4a4a-8aa3-992f070be138.jpg" width=400>
</p>

#### *Special Thanks to*
- [adhe](https://www.opencode.net/adhe) for Creating [MenuZ](https://store.kde.org/p/1367167/)
- [Nayam Amarshe](https://github.com/NayamAmarshe) for improving the design to look more like windows 11 menu, and for guiding me.
- [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.
- [Nayam Amarshe](https://github.com/NayamAmarshe) for improving the design.
- [John Vincent](https://github.com/TenSeventy7) for improving grid view of recommended section.
- [Lupert Everett](https://github.com/LupertEverett) for improving footer section and add ability to add/remove icons in footer.
- [Lupert Everett](https://github.com/LupertEverett) for adding multiple footer icons.
<a href="https://github.com/prateekmedia/Menu11/graphs/contributors"><img alt="Know More" src="https://shields.io/badge/-Know More-blue"/></a>

<h2 align="center">Installing Manually</h2>
Expand Down
2 changes: 1 addition & 1 deletion contents/ui/ItemGridDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Item {
anchors {
left: icon.right
leftMargin: PlasmaCore.Units.smallSpacing * 4
rightMargin: PlasmaCore.Units.smallSpacing * 2
rightMargin: leftMargin / 2
verticalCenter: parent.verticalCenter
}
spacing: 0
Expand Down
12 changes: 8 additions & 4 deletions contents/ui/MainColumnItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Item {
runnerModel.query = text;
newTextQuery(text)
}

PlasmaCore.IconItem {
id: searchIconItem
source: "search"
Expand Down Expand Up @@ -233,7 +233,7 @@ Item {
id: mainLabelGrid
anchors.top: plasmoid.configuration.alwaysShowSearchBar ? searchField.bottom : parent.top
anchors.leftMargin: units.largeSpacing * 3
anchors.topMargin: plasmoid.configuration.alwaysShowSearchBar ? 0.4 * units.largeSpacing : 0
anchors.topMargin: plasmoid.configuration.alwaysShowSearchBar ? units.largeSpacing : 0
anchors.left: parent.left
x: units.smallSpacing
elide: Text.ElideRight
Expand Down Expand Up @@ -290,6 +290,7 @@ Item {
}

anchors {
topMargin: units.smallSpacing
verticalCenter: mainLabelGrid.verticalCenter
rightMargin: units.largeSpacing * 3
leftMargin: units.largeSpacing * 3
Expand All @@ -305,7 +306,7 @@ Item {
top: searching ? searchField.bottom : mainLabelGrid.bottom
leftMargin: units.largeSpacing * 1.6
rightMargin: units.largeSpacing
topMargin: units.largeSpacing
topMargin: units.largeSpacing * 0.7
left: parent.left
right: parent.right
bottom: searching ? parent.bottom : showAllApps ? footer.top : undefined
Expand Down Expand Up @@ -387,6 +388,9 @@ Item {
searchField.backspace();
else
searchField.focus = true
} else if (event.key == Qt.Key_Tab) {
event.accepted = true;
if (!searching && !showAllApps) documentsFavoritesGrid.tryActivate(0, 0);
} else if (event.key == Qt.Key_Escape) {
event.accepted = true;
if (searching) {
Expand Down Expand Up @@ -504,7 +508,7 @@ Item {
left: parent.left
right: parent.right
bottomMargin: 0
topMargin: units.largeSpacing
topMargin: units.largeSpacing * 0.7
}

increaseLeftSpacings: true
Expand Down

0 comments on commit 2388df7

Please sign in to comment.