File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 <label >Whether to use symbolic icons instead of colored ones</label >
6666 <default >false</default >
6767 </entry >
68+ <entry name =" showAllApplications" type =" Bool" >
69+ <label >Whether to show the "All Applications" category in the sidebar</label >
70+ <default >false</default >
71+ </entry >
6872 </group >
6973</kcfg >
Original file line number Diff line number Diff line change @@ -22,6 +22,35 @@ BasePage {
2222 delegate: KickoffListDelegate {
2323 width: view .availableWidth
2424 isCategoryListItem: true
25+ visible: ! (index === 1 && ! Plasmoid .configuration .showAllApplications ) // Hide All Applications when configured
26+ height: (index === 1 && ! Plasmoid .configuration .showAllApplications ) ? 0 : implicitHeight // Remove space when hidden
27+ }
28+
29+ // Ensure we skip hidden items when navigating
30+ function indexIsValid (index ) {
31+ return index !== 1 || Plasmoid .configuration .showAllApplications ;
32+ }
33+
34+ Keys .onDownPressed : {
35+ let nextIndex = currentIndex + 1 ;
36+ while (nextIndex < count && ! indexIsValid (nextIndex)) {
37+ nextIndex++ ;
38+ }
39+ if (nextIndex < count) {
40+ currentIndex = nextIndex;
41+ }
42+ event .accepted = true ;
43+ }
44+
45+ Keys .onUpPressed : {
46+ let prevIndex = currentIndex - 1 ;
47+ while (prevIndex >= 0 && ! indexIsValid (prevIndex)) {
48+ prevIndex-- ;
49+ }
50+ if (prevIndex >= 0 ) {
51+ currentIndex = prevIndex;
52+ }
53+ event .accepted = true ;
2554 }
2655 }
2756 contentAreaComponent: VerticalStackView {
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ KCM.SimpleKCM {
3434 property alias cfg_showActionButtonCaptions: showActionButtonCaptions .checked
3535 property alias cfg_compactMode: compactModeCheckbox .checked
3636 property alias cfg_useSymbolicIcons: useSymbolicIconsCheckbox .checked
37+ property alias cfg_showAllApplications: showAllApplicationsCheckbox .checked
3738
3839 Kirigami .FormLayout {
3940 Button {
@@ -164,6 +165,12 @@ KCM.SimpleKCM {
164165 text: i18n (" Use symbolic icons" )
165166 checked: Plasmoid .configuration .useSymbolicIcons
166167 }
168+
169+ CheckBox {
170+ id: showAllApplicationsCheckbox
171+ text: i18n (" Show 'All Applications' category" )
172+ checked: Plasmoid .configuration .showAllApplications
173+ }
167174
168175 Label {
169176 visible: Kirigami .Settings .tabletMode
You can’t perform that action at this time.
0 commit comments