Announcement

Collapse
No announcement yet.

Where to ask plasmoid code manipulation questions?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Where to ask plasmoid code manipulation questions?

    Under Desktop Support Section ( https://www.kubuntuforums.net/forumd...esktop-Support ) it says -

    KDE Support and Plasma Support. What is the difference between them?

    I want to ask the following question - https://askubuntu.com/questions/1094...manager-widget

    What would be the best place for it?

    #2
    Since you're new here, posting right here should be okay!

    It would be nice if you install inxi, and include the output of inxi -Fxz as part of your question so that people know about your system.
    Kubuntu 20.04

    Comment


      #3
      Originally posted by ismail783 View Post
      Under Desktop Support Section ( https://www.kubuntuforums.net/forumd...esktop-Support ) it says -

      KDE Support and Plasma Support. What is the difference between them?
      KDE:
      KDE is an international free software community that develops Free and Open Source based software. Well-known products include the Plasma Desktop, KDE Frameworks and a range of cross-platform applications designed to run on Unix-like desktops, Microsoft Windows and Android.

      (KDE) Plasma:
      KDE Plasma 5 is the fifth and current generation of the desktop environment created by KDE primarily for Linux systems. KDE Plasma 5 is the successor of KDE Plasma 4 and was initially released on 15 July 2014. It includes a new default theme, known as "Breeze", as well as increased convergence across different devices. The graphical interface was fully migrated to QML, which uses OpenGL for hardware acceleration, which resulted in better performance and reduced power consumption.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Editing plasma

        The user can edit the plasmoids: /usr/share/plasma/plasmoids/... A bit better way is to copy the scripts to the user's home and rename the plasmoids(/metadata.desktop and metadata.json). Getting started: https://techbase.kde.org/Development...GettingStarted

        Qt/Qml docs
        - http://doc.qt.io/qt-5/
        - https://doc.qt.io/qt-5/qtqml-index.html

        Example

        Both plasma task managers are using the same code. The org.kde.plasma.icontasks is 'just' reference to org.kde.plasma.taskmanager code.

        Copying the /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/ to $HOME/.local/share/plasma/plasmoids/org.kde.plasma.taskmanager/.

        Looking/searching height and width definitions...GroupDialog.qml has

        Code:
        mainItem.height = Math.min(preferredHeight, maxHeight);
        mainItem.width = Math.min(preferredWidth, (tasks.vertical ? Math.max(maxWidth, tasks.width) : Math.min(maxWidth, tasks.width)));
        Changing them to (Qml screen: http://doc.qt.io/qt-5/qml-qtquick-window-screen.html ):

        Code:
        mainItem.height = Screen.height / 3
        mainItem.width = Screen.width
        Restarting the plasmashell...



        Now the group dialog is full screen width and 1/3 screen height...

        More examples of editing the plasma 5- KDE Forums:

        - https://forum.kde.org/viewtopic.php?f=289&t=131951
        - https://forum.kde.org/viewtopic.php?f=17&t=131914
        - https://forum.kde.org/viewtopic.php?f=17&t=140979
        - https://forum.kde.org/viewtopic.php?...361132#p361132
        Last edited by Rog131; Nov 19, 2018, 12:46 PM.
        Before you edit, BACKUP !

        Why there are dead links ?
        1. Thread: Please explain how to access old kubuntu forum posts
        2. Thread: Lost Information

        Comment


          #5
          I just have to say one word. WOW!!!!!!!!!!!!!

          Thanks.

          Can I do something like upvote or stuff like that? I am new to this forum so do not know how to give credit.

          Comment


            #6
            Near the top right of the first post, there's a "Thread Tools" with a dropdown and the option to mark the question [SOLVED]. Of course, saying thanks as well never hurts
            Kubuntu 20.04

            Comment


              #7
              Originally posted by ismail783 View Post
              I just have to say one word. WOW!!!!!!!!!!!!!

              Thanks.

              Can I do something like upvote or stuff like that? I am new to this forum so do not know how to give credit.
              You are most welcome. Rog131 is a true treasure here in KFN, and is knowledge of Kubuntu/Linux that he so generously shares is simply astounding.

              We don't have a 'Thank's/Kudo's' system here; they always end up getting out of hand. Your comment in post #5 is sufficient.

              Welcome to KFN!
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                How can I change the width of buttons on the tasklist? I did it once but I don't remember how (I lost my config after reinstallation of system).

                Comment

                Working...
                X