This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Resizable Kickoff Grid and List

0

Votes
0
0
Tags: None
(comma "," separated)
User avatar
wilsonphillips
Registered Member
Posts
6
Karma
0

Resizable Kickoff Grid and List

Sun Sep 11, 2022 12:16 am
Complete noob here, so please bear with me. I am not sure how the formatting will turn out either. :<

I currently have my Grid View setup with a 5 wide x 6 high and it is working well. I have had no issues with it crashing. I have tested it 4 wide x 6 high, 5 wide x 6 high, etc. I have not tried to go past 7x7, because I just have no need to go that far with it. I have not tested it on other PCs than the one I am using.

The settings seem simple enough to change. I did as follows. This change of the number of grid icons does not seem to have any negative effect on the math formula.

/usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/KickoffGridView.qml
Code: Select all
        implicitWidth: {
//            let w = view.cellWidth * 4 + leftMargin + rightMargin
            let w = view.cellWidth * 5 + leftMargin + rightMargin
            if (plasmoid.rootItem.mayHaveGridWithScrollBar) {
                w += verticalScrollBar.implicitWidth
            }
            return w
        }
//        implicitHeight: view.cellHeight * 4 + topMargin + bottomMargin
        implicitHeight: view.cellHeight * 6 + topMargin + bottomMargin

/usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/KickoffListView.qml

Code: Select all
        implicitWidth: {
            let totalMargins = leftMargin + rightMargin
            if (mainContentView) {
                if (plasmoid.rootItem.mayHaveGridWithScrollBar) {
                    totalMargins += verticalScrollBar.implicitWidth
                }
//                return KickoffSingleton.gridCellSize * 4 + totalMargins
                return KickoffSingleton.gridCellSize * 5 + totalMargins
            }
            return contentWidth + totalMargins
        }
        implicitHeight: {
            // use grid cells to determine size
//            let h = KickoffSingleton.gridCellSize * 4
            let h = KickoffSingleton.gridCellSize * 6
            // If no grids are used, use the number of items that would fit in the grid height
            if (plasmoid.configuration.favoritesDisplay != 0 && plasmoid.configuration.applicationsDisplay != 0) {
                h = Math.floor(h / KickoffSingleton.listDelegateHeight) * KickoffSingleton.listDelegateHeight
            }
            return h + topMargin + bottomMargin
        }


I am not a coder and will never claim to be. I managed to dig through the files to find the values and change them. They get over written with each patch and I have to go back and fix them each time. That part doesn't bother me at all. On the other hand, I did try my hand at some editing of the ConfigGeneral.qml to see if there was any way I could add in a pair of sliders into the configuration box. It was just a bit over my head, as I am not a coder. This is no bash script. I don't know how to declare variables and such. For someone who does code, it looks like a simple fix. Just change the value to a name like iconCountWide and iconCountHigh and set them with a selection of 4 - 5 - 6 - 7 on a couple of sliders in Application Launcher Settings just below the "Show other applications" radio buttons.

This customization seems to be fixable. I know that other things tend to get higher priorities. :)
User avatar
wilsonphillips
Registered Member
Posts
6
Karma
0

Re: Resizable Kickoff Grid and List

Tue Oct 11, 2022 11:15 am
I see that we have a resizable kickoff on the way. I will go ahead and mark this as solved. Thanks to the developers for their hard work.


Edit.
I can't seem to find a way to edit the subject line. I did find a way to edit tags.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Resizable Kickoff Grid and List

Fri Dec 02, 2022 1:08 pm
I moved your post to the "already implemented" section.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
soltik
Registered Member
Posts
2
Karma
0

Re: Resizable Kickoff Grid and List

Tue Feb 07, 2023 7:14 am
What is a good size for a beer fridge? The best beer fridges keep your bottles and cans perfectly chilled, fresh, and organized. From freestanding mini-fridges to full-sized
User avatar
wilsonphillips
Registered Member
Posts
6
Karma
0

Re: Resizable Kickoff Grid and List

Thu Feb 16, 2023 2:46 am
Mamarok wrote:I moved your post to the "already implemented" section.


Thank you. ;D


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]