Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for plasma 6 #13

Open
chicco-carone opened this issue Dec 3, 2023 · 77 comments
Open

Add support for plasma 6 #13

chicco-carone opened this issue Dec 3, 2023 · 77 comments

Comments

@chicco-carone
Copy link

I just finished updating to plasma 6 beta 1 and this style is not present anymore in the settings since it has to be ported to qt6.

@DexterHaxxor
Copy link

To be honest, it would be a good idea to rebase this style on upstream Breeze, because that has been getting a lot of love recently and rewriting this to Qt6 in this state doesn't seem like a great idea.

@boehs
Copy link
Owner

boehs commented Jan 7, 2024

#2

@edpil02
Copy link

edpil02 commented Jan 21, 2024

I made a port to QT6 4 months ago. Luwx#200 (comment)
Still have no major issue after plasma rc1 update , but I keep trying to clean up the code.

@boehs
Copy link
Owner

boehs commented Jan 21, 2024

@edpil02 if you open source it or email me a patch (my email is evan (the at goes here) boehs.org) I’m more than happy to merge it here

@edpil02
Copy link

edpil02 commented Jan 22, 2024

I planned to send you a patch since my port is based on your repository and I wanted a code review cause I'm not a programmer , after dealing with some qt6 depredications.

At the same time klassy developer: https://github.com/paulmcauley/klassy is ready to add lighty options in his code and I think he will accept help.
I wonder if this would be a better solution rather than lightly which is no longer maintained.
At my modest level I will try to start with “transparent dolphin view.”

@alba4k
Copy link

alba4k commented Feb 16, 2024

@edpil02 Could you please publish the source code, or even just a lightly.so? I'd really love to check it out

Also I don't see how klassy could be an alternative, as that doesnt currently support qt6 either

@boehs
Copy link
Owner

boehs commented Feb 17, 2024

I’m considering the possibility of placing a bounty on this. What would people be willing to contribute?

@alba4k
Copy link

alba4k commented Feb 17, 2024

Not that much, but I could consider putting 5$ into it

@edpil02
Copy link

edpil02 commented Feb 17, 2024

I'm still spending time reviewing the code because there are still changes in qt6
With qt6.5 I had no problem.
With qt.6.6 I noticed while doing tests after my last post that the opacity had disappeared in the dolphin sidebar.
A sent two bugs report : https://bugreports.qt.io/browse/QTBUG-122290
It was only yesterday that I realized that it was not a problem of apacity but that it was necessary to change a Boolean function in lightly.
I repeat, I am a beginner learning Qt...
My distro will move to qt6.6.2 if there is no change I will send the code to Boehs.

@edpil02
Copy link

edpil02 commented Feb 17, 2024

Good news, I managed to get my opacity slider to work again.
I hope not to have new changes in a few days when my distro is on Qt6.6.2
screen

@alba4k
Copy link

alba4k commented Feb 17, 2024

@edpil02 that is looking great

Would you be able to test whether qt6ct is able to see the theme? Also, when can we hope for your work to become publicly avaiable?

@edpil02
Copy link

edpil02 commented Feb 17, 2024

See the screenshot , qt6ct (i dont use it) seems to see the theme.
As I said my distro will upgrade to the new version of qt6 in 3 days and if that goes well I will send a patch to Boehs
for review and a merge.
qt6ct

@alba4k
Copy link

alba4k commented Feb 17, 2024

That's awesome!

btw, qt6ct just exists to make qt handling easier outside of plasma, so it would make sense for you not to be using it

@edpil02
Copy link

edpil02 commented Feb 20, 2024

@alba4k . Done . I sent a tarball to Boehs for a merge if it's possible.

@boehs
Copy link
Owner

boehs commented Feb 21, 2024

I can confirm that I have received the patched tarball, I will review it shortly.

@alba4k
Copy link

alba4k commented Feb 24, 2024

I was wondering

Do you know if it would be possible to get control on the AUR package?

https://aur.archlinux.org/packages/lightly-qt

@chicco-carone
Copy link
Author

I was wondering

Do you know if it would be possible to get control on the AUR package?

https://aur.archlinux.org/packages/lightly-qt

There is already the lightly-boehs-git package on the aur

@DexterHaxxor
Copy link

As the former maintainer of that package, no, there isn't, I've deleted it because the lightly-git package points to this repo.

@alba4k
Copy link

alba4k commented Feb 24, 2024

I see, thanks!

Also, why does the -git version have so many extra dependencies?
immagine

@chicco-carone
Copy link
Author

As the former maintainer of that package, no, there isn't, I've deleted it because the lightly-git package points to this repo.

That's why i couldn't find it. I thought that the lightly-git was the git version of the original version

@alba4k
Copy link

alba4k commented Feb 28, 2024

@boehs did you manage to start taking a look at their code? sorry to bother 😅

@boehs
Copy link
Owner

boehs commented Feb 28, 2024 via email

@boehs
Copy link
Owner

boehs commented Feb 28, 2024

I have opened a PR at #16 so, if you should wish, you can test the code yourself. Aside from testing, I have asked for edpil02's preferred name and email for the commit

@boehs
Copy link
Owner

boehs commented Feb 28, 2024

I see, thanks!

Also, why does the -git version have so many extra dependencies? immagine

I do not maintain the AUR package.

Edit: And at this time I am not interested in doing so.

@boehs
Copy link
Owner

boehs commented Feb 28, 2024

One question I especially need to answer is if this code is still functional on KDE 5.27. If it's not, a decision needs to be made:

  • Fully switch to Qt 6 only
    • If so, when? Now?
  • Maintain two separate branches and request packages include code to switch to the correct brach for the build
  • Annotate the incompatible code with ifdefs of some sort

Because I suppose I am now the benevolent dictator, I'm inclined to opt for option A, but I am open to other opinions

@alba4k
Copy link

alba4k commented Feb 28, 2024

How about C? a cmake flag like -DUSE_QT6=OFF/ON could be used (this is what adwaita seems to do)

@edpil02
Copy link

edpil02 commented Feb 29, 2024

@alba4k
I thought about using this flag for compatibility with plasma5.
But just to make a code compilable with Qt6 I believe that there are at least fifty lines to change without counting that it will certainly be necessary to rewrite certain parts that Qt declares obsolete.
And even when the code compiled, the configs did not appear in Plasma 6. I had to look in the Breeze code to find a solution.
I don't think it was worth it.

But I think Boehs is better than me to decide on the right solution and improve the code.

@SakiKarened
Copy link

image
With lastest commit it doesn't seem to compile

@edpil02
Copy link

edpil02 commented Feb 29, 2024

This is what I said above, I added 1 files
lightlystyleconfig.json

I
Buils fine for me .

 DESTDIR=/builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64
+ /usr/bin/cmake --install redhat-linux-build
-- Install configuration: "Debug"
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/color-schemes/Lightly.colors
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/qt6/plugins/styles/lightly6.so
-- Set non-toolchain portion of runtime path of "/builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/qt6/plugins/styles/lightly6.so" to ""
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/kstyle/themes/lightly.themerc
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/qt6/plugins/kstyle_config/lightlystyleconfig.so
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/applications/lightlystyleconfig.desktop
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/bin/lightly-settings6
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/icons/hicolor/scalable/apps/lightly-settings.svgz
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/liblightlycommon6.so.6.80
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/liblightlycommon6.so.6
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/qt6/plugins/org.kde.kdecoration2/org.kde.lightly.so
-- Set non-toolchain portion of runtime path of "/builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/qt6/plugins/org.kde.kdecoration2/org.kde.lightly.so" to ""
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/kservices6/lightlydecorationconfig.desktop
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/qt6/plugins/org.kde.kdecoration2.kcm/kcm_lightlydecoration.so
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/applications/kcm_lightlydecoration.desktop
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/cmake/Lightly/LightlyConfig.cmake
-- Installing: /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/lib64/cmake/Lightly/LightlyConfigVersion.cmake
Processing files: lightly-qt6-0.4.1-5.fc41.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.KrqGMd
+ umask 022
+ cd /builddir/build/BUILD
+ cd Lightly-0.4.1
+ DOCDIR=/builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/doc/lightly-qt6
+ export LC_ALL=
+ LC_ALL=
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/doc/lightly-qt6
+ cp -pr /builddir/build/BUILD/Lightly-0.4.1/AUTHORS /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/doc/lightly-qt6
+ cp -pr /builddir/build/BUILD/Lightly-0.4.1/README.md /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/doc/lightly-qt6
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.FhE7ip
+ umask 022
+ cd /builddir/build/BUILD
+ cd Lightly-0.4.1
+ LICENSEDIR=/builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/licenses/lightly-qt6
+ export LC_ALL=
+ LC_ALL=
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/licenses/lightly-qt6
+ cp -pr /builddir/build/BUILD/Lightly-0.4.1/COPYING /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64/usr/share/licenses/lightly-qt6
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: application() application(kcm_lightlydecoration.desktop) application(lightlystyleconfig.desktop) cmake(Lightly) = 6.80 cmake(lightly) = 6.80 liblightlycommon6.so.6()(64bit) lightly-qt6 = 0.4.1-5.fc41 lightly-qt6(x86-64) = 0.4.1-5.fc41
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: cmake-filesystem(x86-64) libKF6ColorScheme.so.6()(64bit) libKF6ConfigCore.so.6()(64bit) libKF6ConfigGui.so.6()(64bit) libKF6CoreAddons.so.6()(64bit) libKF6GuiAddons.so.6()(64bit) libKF6I18n.so.6()(64bit) libKF6IconThemes.so.6()(64bit) libKF6KCMUtils.so.6()(64bit) libKF6KCMUtilsCore.so.6()(64bit) libKF6Style.so.6()(64bit) libKF6WidgetsAddons.so.6()(64bit) libKF6WindowSystem.so.6()(64bit) libQt6Core.so.6()(64bit) libQt6Core.so.6(Qt_6)(64bit) libQt6Core.so.6(Qt_6.6)(64bit) libQt6DBus.so.6()(64bit) libQt6DBus.so.6(Qt_6)(64bit) libQt6Gui.so.6()(64bit) libQt6Gui.so.6(Qt_6)(64bit) libQt6Quick.so.6()(64bit) libQt6Quick.so.6(Qt_6)(64bit) libQt6Widgets.so.6()(64bit) libQt6Widgets.so.6(Qt_6)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libkdecorations2.so.6()(64bit) liblightlycommon6.so.6()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/lightly-qt6-0.4.1-5.fc41.x86_64

Wrote: /builddir/build/RPMS/lightly-qt6-0.4.1-5.fc41.x86_64.rpm

@vndreiii
Copy link

vndreiii commented Mar 7, 2024

what edits did you have to make? i'm trying to get it working, switching to the qt6 branch gives me the lightlystyleconfig.json error, i've followed along with the steps including adding the new tarball and it brings me to this error

On Fedora 40, I had to install these packages:

sudo dnf install cmake extra-cmake-modules "cmake(Qt6Core)" "cmake(Qt6Gui)" "cmake(Qt6DBus)" "cmake(KF6GuiAddons)" "cmake(KF6WindowSystem)" "cmake(KF6I18n)" "cmake(KF6CoreAddons)" "cmake(KF6ConfigWidgets)" "cmake(Qt6UiTools)" "cmake(KF6GlobalAccel)" "cmake(KF6IconThemes)" kwin-devel libepoxy-devel "cmake(KF6Crash)" "cmake(KF6KIO)" "cmake(KF6Notifications)" kf6-kpackage-devel kf6-kirigami-devel kf6-kcmutils-devel kf6-kxmlgui-devel kf6-kguiaddons-devel kf6-ki18n-devel kf6-kiconthemes-devel -y

Switched to qt6 branch, added lightlystyleconfig.json to /kstyle/config and pulled CMakeLists.txt, kcm_lightlydecoration.{json,cpp} from the config.tar.gz to kdecoration/config

Afterwards it builds and runs fine with

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_TESTING=OFF ..

My problem while compiling this was that config/ui_lightlyconfigurationui.h was not being generated.
So I cd'd into /build/kdecoration/config/ i executed make and it generated the ui_lightlyconfigurationui.h
then resumed the normal compilation with make in /build/ directory then sudo make install.

@murakami-marco
Copy link

murakami-marco commented Mar 7, 2024

I succesfully compile but getting this
image

I follow all the recomendations like Switched to qt6 branch, added lightlystyleconfig.json to /kstyle/config and pulled CMakeLists.txt, kcm_lightlydecoration.{json,cpp} from the config.tar.gz to kdecoration/config. Cd'd into /build/kdecoration/config/ i executed make and it generated the ui_lightlyconfigurationui.h
then resumed the normal compilation with make in /build/ directory then sudo make install.

I'm on KDE Neon

This is the output on cmake

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_TESTING=OFF ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.4.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found KF6CoreAddons: /usr/lib/x86_64-linux-gnu/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake (found version "6.0.0")
-- Found KF6ColorScheme: /usr/lib/x86_64-linux-gnu/cmake/KF6ColorScheme/KF6ColorSchemeConfig.cmake (found version "6.0.0")
-- Found KF6Config: /usr/lib/x86_64-linux-gnu/cmake/KF6Config/KF6ConfigConfig.cmake (found version "6.0.0")
-- Found KF6GuiAddons: /usr/lib/x86_64-linux-gnu/cmake/KF6GuiAddons/KF6GuiAddonsConfig.cmake (found version "6.0.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.21")
-- Found KF6I18n: /usr/lib/x86_64-linux-gnu/cmake/KF6I18n/KF6I18nConfig.cmake (found version "6.0.0")
-- Found KF6IconThemes: /usr/lib/x86_64-linux-gnu/cmake/KF6IconThemes/KF6IconThemesConfig.cmake (found version "6.0.0")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found KF6WindowSystem: /usr/lib/x86_64-linux-gnu/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake (found version "6.0.0")
-- Found KF6: success (found suitable version "6.0.0", minimum required is "5.240.0") found components: CoreAddons ColorScheme Config GuiAddons I18n IconThemes WindowSystem
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- The following OPTIONAL packages have been found:

* OpenGL
* Vulkan
* Qt6DBusTools (required version >= 6.6.2)
* Qt6WidgetsTools (required version >= 6.6.2)
* Qt6Widgets (required version >= 6.5.0)
* Freetype
* Fontconfig
* Qt6CoreTools (required version >= 6.6.2)
* Qt6QmlTools (required version >= 6.6.2)
* KF6FrameworkIntegration (required version >= 5.240.0), KF6 Framework Integration, <https://projects.kde.org/projects/frameworks/frameworkintegration>
Required to use KStyle convenience functionalities in style
* PkgConfig
* XKB (required version >= 0.5.0), XKB API common to servers and clients., <http://xkbcommon.org>
* WrapVulkanHeaders
* Qt6GuiTools (required version >= 6.6.2)
* Git

-- The following REQUIRED packages have been found:

* ECM (required version >= 5.240.0)
* KF6Config (required version >= 5.240.0)
* KF6GuiAddons (required version >= 5.240.0)
* Gettext
* KF6I18n (required version >= 5.240.0)
* KF6WindowSystem (required version >= 5.240.0)
* KF6 (required version >= 5.240.0)
* KF6ColorScheme (required version >= 6.0.0)
* KF6CoreAddons (required version >= 6.0.0)
* KF6KCMUtils (required version >= 5.240.0), Helps create configuration modules
KCMUtils used for the configuration modules or the decoration and Qt Style
* Qt6Quick (required version >= 6.5.0)
* KF6KirigamiPlatform (required version >= 5.240.0)
* KF6IconThemes (required version >= 6.0.0)
* Qt6
* KDecoration2

-- The following OPTIONAL packages have not been found:

* Qt6QmlCompilerPlusPrivate

-- Configuring done (1.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/marco/Plasma/Lightly/build

And this is the output for sudo make install

sudo make install
[  0%] Built target lightlycommon6_autogen_timestamp_deps
[  1%] Built target lightlycommon6_autogen
[  5%] Built target lightlycommon6
[  5%] Built target lightly6_autogen_timestamp_deps
[  6%] Built target lightly6_autogen
[ 54%] Built target lightly6
[ 54%] Built target lightlystyleconfig-kcm-desktop-gen
[ 54%] Built target lightlystyleconfig_autogen_timestamp_deps
[ 55%] Built target lightlystyleconfig_autogen
[ 64%] Built target lightlystyleconfig
[ 64%] Built target lightly-settings_autogen_timestamp_deps
[ 65%] Built target lightly-settings_autogen
[ 69%] Built target lightly-settings
[ 69%] Built target lightlydecoration_autogen_timestamp_deps
[ 70%] Built target lightlydecoration_autogen
[ 81%] Built target lightlydecoration
[ 81%] Built target kcm_lightlydecoration-kcm-desktop-gen
[ 81%] Built target kcm_lightlydecoration_autogen_timestamp_deps
[ 82%] Built target kcm_lightlydecoration_autogen
[100%] Built target kcm_lightlydecoration
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/share/color-schemes/Lightly.colors
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/styles/lightly6.so
-- Set non-toolchain portion of runtime path of "/usr/lib/x86_64-linux-gnu/qt6/plugins/styles/lightly6.so" to ""
-- Up-to-date: /usr/share/kstyle/themes/lightly.themerc
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/kstyle_config/lightlystyleconfig.so
-- Installing: /usr/share/applications/lightlystyleconfig.desktop
-- Installing: /usr/bin/lightly-settings6
-- Up-to-date: /usr/share/icons/hicolor/scalable/apps/lightly-settings.svgz
-- Installing: /usr/lib64/liblightlycommon6.so.6.80
-- Up-to-date: /usr/lib64/liblightlycommon6.so.6
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/org.kde.kdecoration2/org.kde.lightly.so
-- Set non-toolchain portion of runtime path of "/usr/lib/x86_64-linux-gnu/qt6/plugins/org.kde.kdecoration2/org.kde.lightly.so" to ""
-- Up-to-date: /usr/share/kservices6/lightlydecorationconfig.desktop
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/org.kde.kdecoration2.kcm/kcm_lightlydecoration.so
-- Installing: /usr/share/applications/kcm_lightlydecoration.desktop
-- Installing: /usr/lib64/cmake/Lightly/LightlyConfig.cmake
-- Installing: /usr/lib64/cmake/Lightly/LightlyConfigVersion.cmake

Not sure if it's because the missing optional package. I don't think so because it's optional but I don't have a clue.

Help please.

Thanks!!

@p0ryae
Copy link

p0ryae commented Mar 8, 2024

I follow all the recomendations like Switched to qt6 branch, added lightlystyleconfig.json to /kstyle/config and pulled CMakeLists.txt, kcm_lightlydecoration.{json,cpp} from the config.tar.gz to kdecoration/config.

I followed the steps above exactly except the Cd'd into /build/kdecoration/config/ i executed make and it generated the ui_lightlyconfigurationui.h part, and everything works perfectly fine for me, and Lightly shows up in system settings, and applies correctly.

image

@FantasyPvP
Copy link

I follow all the recomendations like Switched to qt6 branch, added lightlystyleconfig.json to /kstyle/config and pulled CMakeLists.txt, kcm_lightlydecoration.{json,cpp} from the config.tar.gz to kdecoration/config.

I followed the steps above exactly except the Cd'd into /build/kdecoration/config/ i executed make and it generated the ui_lightlyconfigurationui.h part, and everything works perfectly fine for me, and Lightly shows up in system settings, and applies correctly.

image

Just wondering is that the sweet theme you've got there? I recognise the window buttons. That combination with the lightly desktop theme looks so clean I'm def gonna have to try that XD

@p0ryae
Copy link

p0ryae commented Mar 8, 2024

Just wondering is that the sweet theme you've got there? I recognise the window buttons. That combination with the lightly desktop theme looks so clean I'm def gonna have to try that XD

I use McVentura Dark for Plasma Style, Ullterly Round Dark solid for window decorations, Tela Circle Dark for icons, ChromeOSKDE Darknes (with some slight modifications) for colors, and for rounded corners I use LightlyShaders plasma6 branch. Some are tuned according to preference, but should be straightforward, otherwise. Hope that helps.

@FantasyPvP
Copy link

Just wondering is that the sweet theme you've got there? I recognise the window buttons. That combination with the lightly desktop theme looks so clean I'm def gonna have to try that XD

I use McVentura Dark for Plasma Style, Ullterly Round Dark solid for window decorations, Tela Circle Dark for icons, ChromeOSKDE Darknes (with some slight modifications) for colors, and for rounded corners I use LightlyShaders plasma6 branch. Some are tuned according to preference, but should be straightforward, otherwise. Hope that helps.

Thanks I'll have a look at those themes

@CrabbyDisk
Copy link

I am having issues installing lightly on plasma 6. cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_TESTING=OFF .. gives me an error message:

CMake Error at /usr/lib/cmake/KF6CoreAddons/KF6CoreAddonsMacros.cmake:29 (message):
  Must specify INSTALL_NAMESPACE for kcm_lightlydecoration
Call Stack (most recent call first):
  kstyle/CMakeLists.txt:19 (kcoreaddons_add_plugin)

I should have done all the steps shown in this thread.

@TuxTheAstronaut
Copy link

when i compile config/ui_lightlyconfigurationui.h isn't being generated and i tried doing what someone else above said by going into the make file of that directory and even tho its now generated it still says it cant find the file so anyone know what am i doing wrong?

@HikariNeee
Copy link

I can confirm that it compiles successfully and the team works completely fine.
I did use config.tar.gz instead of generating manually.

@MicrogamerCz
Copy link

I followed these instructions as best as I could, but I can't make the build/kdecoration/config for the "ui_lightlyconfigurationui.h"

obrazek

I'm using KDE Neon and based on the type I think it needs kf6-kwindowsystem which I already have installed

I cloned the repo and downloaded the files from here, put the files from the tar to kdecoration/config, put the json in kstyle/config, then used the cmake command also from this PR in build/, used make, cd to kdecoration/config and again make and there this error happened.

@HikariNeee
Copy link

In my case I did not need to build ui_lightlyconfiguration.h.
Does it not build if you do these steps? #13 (comment)

@MicrogamerCz
Copy link

I used this cmake build command:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_TESTING=OFF ..

then make and I got this error which I expected based on other replies
image
about 'ui_lightlyconfiguration.h' missing, so I used make in build/kdecoration/config where I got the errors with KWindowInfo

@Lymia
Copy link

Lymia commented Mar 19, 2024

{
    fetchFromGitHub,
    mkKdeDerivation,
    extra-cmake-modules,
    kdecoration,
    plasma-workspace,
    qtbase,
    fetchurl,
}:

mkKdeDerivation rec {
    pname = "lightly-qt6";
    version = "0.4.1";

    src = fetchFromGitHub {
        owner = "boehs";
        repo = "Lightly";
        rev = "00ca23447844114d41bfc0d37cf8823202c082e8";
        sha256 = "sha256-NpgOcN9sDqgQMjqcfx92bfKohxaJpnwMgxb9MCu9uJM=";
    };

    patchPhase =
        let
            config-tar-gz = fetchurl {
                url = "https://github.com/boehs/Lightly/files/14445309/config.tar.gz";
                sha256 = "sha256-eCIRm2z1+eTBcCCg8Wdt2DfTTbc767Rv+m1LI+t058I=";
            };
            lightlystyleconfig-json = fetchurl {
                url = "https://github.com/boehs/Lightly/files/14444935/lightlystyleconfig.json";
                sha256 = "sha256-ORQk0QirDB9dF3RdgmH5sstqQqqSEfOE6lh1YEUz+iM=";
            };
        in ''
            mkdir tmp
            cd tmp
            tar -xv -f ${config-tar-gz}
            cd ..

            cp -v tmp/config/CMakeLists.txt kdecoration/config/CMakeLists.txt
            cp -v tmp/config/kcm_lightlydecoration.json kdecoration/config/kcm_lightlydecoration.json
            cp -v tmp/config/kcm_lightlydecoration.cpp kdecoration/config/kcm_lightlydecoration.cpp
            cp -v ${lightlystyleconfig-json} kstyle/config/lightlystyleconfig.json
        '';

    extraBuildInputs = [
        kdecoration
        plasma-workspace
        extra-cmake-modules
    ];
}

Here's a compiling nix derivation for the qt6 version of lightly. Still testing if it works.

(call it like this:)

lightly-qt6 = pkgs.kdePackages.callPackage ./apps/lightly-qt6.nix {};

EDIT: Can confirm it works.

@NeformaliTu
Copy link

I followed the instructions, but got an error:
[ 53%] Linking CXX shared module ../bin/lightly6.so
[ 54%] Built target lightly6
Could not open file "/home/radio/Ð\u0097агÑ\u0080Ñ\u0083зки/Lightly-qt6/kstyle/config/lightlystyleconfig.json"
make[2]: *** [kstyle6/config/CMakeFiles/lightlystyleconfig-kcm-desktop-gen.dir/build.make:70: kstyle6/config/CMakeFiles/lightlystyleconfig-kcm-desktop-gen] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:688: kstyle6/config/CMakeFiles/lightlystyleconfig-kcm-desktop-gen.dir/all] Ошибка 2
make: *** [Makefile:136: all] Ошибка 2

Tell me what could be the problem?

@xkain
Copy link

xkain commented Mar 25, 2024

I succesfully compile but getting this image

I follow all the recomendations like Switched to qt6 branch, added lightlystyleconfig.json to /kstyle/config and pulled CMakeLists.txt, kcm_lightlydecoration.{json,cpp} from the config.tar.gz to kdecoration/config. Cd'd into /build/kdecoration/config/ i executed make and it generated the ui_lightlyconfigurationui.h then resumed the normal compilation with make in /build/ directory then sudo make install.

I'm on KDE Neon

This is the output on cmake

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_TESTING=OFF ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.4.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found KF6CoreAddons: /usr/lib/x86_64-linux-gnu/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake (found version "6.0.0")
-- Found KF6ColorScheme: /usr/lib/x86_64-linux-gnu/cmake/KF6ColorScheme/KF6ColorSchemeConfig.cmake (found version "6.0.0")
-- Found KF6Config: /usr/lib/x86_64-linux-gnu/cmake/KF6Config/KF6ConfigConfig.cmake (found version "6.0.0")
-- Found KF6GuiAddons: /usr/lib/x86_64-linux-gnu/cmake/KF6GuiAddons/KF6GuiAddonsConfig.cmake (found version "6.0.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.21")
-- Found KF6I18n: /usr/lib/x86_64-linux-gnu/cmake/KF6I18n/KF6I18nConfig.cmake (found version "6.0.0")
-- Found KF6IconThemes: /usr/lib/x86_64-linux-gnu/cmake/KF6IconThemes/KF6IconThemesConfig.cmake (found version "6.0.0")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found KF6WindowSystem: /usr/lib/x86_64-linux-gnu/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake (found version "6.0.0")
-- Found KF6: success (found suitable version "6.0.0", minimum required is "5.240.0") found components: CoreAddons ColorScheme Config GuiAddons I18n IconThemes WindowSystem
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- The following OPTIONAL packages have been found:

* OpenGL
* Vulkan
* Qt6DBusTools (required version >= 6.6.2)
* Qt6WidgetsTools (required version >= 6.6.2)
* Qt6Widgets (required version >= 6.5.0)
* Freetype
* Fontconfig
* Qt6CoreTools (required version >= 6.6.2)
* Qt6QmlTools (required version >= 6.6.2)
* KF6FrameworkIntegration (required version >= 5.240.0), KF6 Framework Integration, <https://projects.kde.org/projects/frameworks/frameworkintegration>
Required to use KStyle convenience functionalities in style
* PkgConfig
* XKB (required version >= 0.5.0), XKB API common to servers and clients., <http://xkbcommon.org>
* WrapVulkanHeaders
* Qt6GuiTools (required version >= 6.6.2)
* Git

-- The following REQUIRED packages have been found:

* ECM (required version >= 5.240.0)
* KF6Config (required version >= 5.240.0)
* KF6GuiAddons (required version >= 5.240.0)
* Gettext
* KF6I18n (required version >= 5.240.0)
* KF6WindowSystem (required version >= 5.240.0)
* KF6 (required version >= 5.240.0)
* KF6ColorScheme (required version >= 6.0.0)
* KF6CoreAddons (required version >= 6.0.0)
* KF6KCMUtils (required version >= 5.240.0), Helps create configuration modules
KCMUtils used for the configuration modules or the decoration and Qt Style
* Qt6Quick (required version >= 6.5.0)
* KF6KirigamiPlatform (required version >= 5.240.0)
* KF6IconThemes (required version >= 6.0.0)
* Qt6
* KDecoration2

-- The following OPTIONAL packages have not been found:

* Qt6QmlCompilerPlusPrivate

-- Configuring done (1.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/marco/Plasma/Lightly/build

And this is the output for sudo make install

sudo make install
[  0%] Built target lightlycommon6_autogen_timestamp_deps
[  1%] Built target lightlycommon6_autogen
[  5%] Built target lightlycommon6
[  5%] Built target lightly6_autogen_timestamp_deps
[  6%] Built target lightly6_autogen
[ 54%] Built target lightly6
[ 54%] Built target lightlystyleconfig-kcm-desktop-gen
[ 54%] Built target lightlystyleconfig_autogen_timestamp_deps
[ 55%] Built target lightlystyleconfig_autogen
[ 64%] Built target lightlystyleconfig
[ 64%] Built target lightly-settings_autogen_timestamp_deps
[ 65%] Built target lightly-settings_autogen
[ 69%] Built target lightly-settings
[ 69%] Built target lightlydecoration_autogen_timestamp_deps
[ 70%] Built target lightlydecoration_autogen
[ 81%] Built target lightlydecoration
[ 81%] Built target kcm_lightlydecoration-kcm-desktop-gen
[ 81%] Built target kcm_lightlydecoration_autogen_timestamp_deps
[ 82%] Built target kcm_lightlydecoration_autogen
[100%] Built target kcm_lightlydecoration
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/share/color-schemes/Lightly.colors
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/styles/lightly6.so
-- Set non-toolchain portion of runtime path of "/usr/lib/x86_64-linux-gnu/qt6/plugins/styles/lightly6.so" to ""
-- Up-to-date: /usr/share/kstyle/themes/lightly.themerc
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/kstyle_config/lightlystyleconfig.so
-- Installing: /usr/share/applications/lightlystyleconfig.desktop
-- Installing: /usr/bin/lightly-settings6
-- Up-to-date: /usr/share/icons/hicolor/scalable/apps/lightly-settings.svgz
-- Installing: /usr/lib64/liblightlycommon6.so.6.80
-- Up-to-date: /usr/lib64/liblightlycommon6.so.6
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/org.kde.kdecoration2/org.kde.lightly.so
-- Set non-toolchain portion of runtime path of "/usr/lib/x86_64-linux-gnu/qt6/plugins/org.kde.kdecoration2/org.kde.lightly.so" to ""
-- Up-to-date: /usr/share/kservices6/lightlydecorationconfig.desktop
-- Installing: /usr/lib/x86_64-linux-gnu/qt6/plugins/org.kde.kdecoration2.kcm/kcm_lightlydecoration.so
-- Installing: /usr/share/applications/kcm_lightlydecoration.desktop
-- Installing: /usr/lib64/cmake/Lightly/LightlyConfig.cmake
-- Installing: /usr/lib64/cmake/Lightly/LightlyConfigVersion.cmake

Not sure if it's because the missing optional package. I don't think so because it's optional but I don't have a clue.

Help please.

Thanks!!

Hi,

I'm also on KDE Neon but I can't compile, have you succeeded since then and what steps did you take?

EDIT: Finaly have the same :
Copie d'écran_20240325_182505

@xkain
Copy link

xkain commented Mar 25, 2024

Hi,

Lightly now works on my KDE Neon but I have some display bugs:

Copie d'écran_20240325_221052

@hazel-bunny
Copy link

Hi,

Lightly now works on my KDE Neon but I have some display bugs:

Copie d'écran_20240325_221052

Not reproducible in Fedora

Screenshot_20240328_192542

@alexhulbert
Copy link

Just want to add that everything is working perfectly for me too! In fact, I was seeing some artifacts on qt5 that actually disappeared in qt6+lightly. Is there anything left preventing an aur release?

@hazel-bunny
Copy link

@alexhulbert lightly-qt6-git with a patch is already on aur and copr. @boehs needs to tag a release at first if you want an actual "release" on aur. There are outstanding bugs though that are present in both luwx and boehs versions.

@alexhulbert
Copy link

@alexhulbert lightly-qt6-git with a patch is already on aur and copr. @boehs needs to tag a release at first if you want an actual "release" on aur. There are outstanding bugs though that are present in both luwx and boehs versions.

Oh my bad, I must have missed that. Thanks!

@boehs
Copy link
Owner

boehs commented Mar 28, 2024

Sorry yall, I'm immensely busy with various personal things that have cropped up in the past month. I'd still consider this fork maintainedish, I just need to deal with the other stuff first.

By the way, I'm mildly interested in adding another maintainer to handle stuff like this, I'll give it more thought soon.

Again I'm immensely sorry, I know I said it'd be done a few weeks ago but that's just the way life be sometimes

@AlphaCraft9658
Copy link

Sorry yall, I'm immensely busy with various personal things that have cropped up in the past month. I'd still consider this fork maintainedish, I just need to deal with the other stuff first.

By the way, I'm mildly interested in adding another maintainer to handle stuff like this, I'll give it more thought soon.

Again I'm immensely sorry, I know I said it'd be done a few weeks ago but that's just the way life be sometimes

I wish I could help with maintaining amazing projects like this one, but I'm currently lacking the skill and even the time to do so. School is keeping me busy, and I am doing my best to get the Abitur, which is a German degree. I wish you the best of luck with your stuff and hope you can handle it smoothly!

@OzzyHelix
Copy link

Sorry yall, I'm immensely busy with various personal things that have cropped up in the past month. I'd still consider this fork maintainedish, I just need to deal with the other stuff first.

By the way, I'm mildly interested in adding another maintainer to handle stuff like this, I'll give it more thought soon.

Again I'm immensely sorry, I know I said it'd be done a few weeks ago but that's just the way life be sometimes

I would be careful about adding another maintainer after the xz situation making sure your maintainers aren't bad actors should be part of the consideration of choosing a maintainer

@AlphaCraft9658
Copy link

Sorry yall, I'm immensely busy with various personal things that have cropped up in the past month. I'd still consider this fork maintainedish, I just need to deal with the other stuff first.

By the way, I'm mildly interested in adding another maintainer to handle stuff like this, I'll give it more thought soon.

Again I'm immensely sorry, I know I said it'd be done a few weeks ago but that's just the way life be sometimes

Hi! How are you doing? I'm interested in hearing about whether stuff goes well right now, that you're not having troubles with the things you need to do in your personal life. I appreciate the work developers put into these kinds of projects and want them to be doing well, as I know how hard such things can get, especially when there are other things that need attention. Hopefully, you will soon be able to also get this issue dealt with as well and with a fresh mind. 👍🏻

@boehs
Copy link
Owner

boehs commented May 1, 2024

I would be careful about adding another maintainer after the xz situation making sure your maintainers aren't bad actors should be part of the consideration of choosing a maintainer

I'm aware — I spent much of the week after the incident documenting the bug in an article referenced by the NYT and NIST. That was a significant time sink.


Thank you for your support @AlphaCraft9658

@OzzyHelix
Copy link

I would be careful about adding another maintainer after the xz situation making sure your maintainers aren't bad actors should be part of the consideration of choosing a maintainer

I'm aware — I spent much of the week after the incident documenting the bug in an article referenced by the NYT and NIST. That was a significant time sink.

Thank you for your support @AlphaCraft9658

my concern is just having another xz situation because of a maintainer with malicious hidden intent its why you should be careful who you choose. I'm not saying you shouldn't you should just be sure that you aren't going to end up with someone who is going to put malware in the project.

@AlphaCraft9658
Copy link

Hi! I just wanted to mention that it seems like the qt6-branch is basically ready to merge? Quite a few people have successfully built Lightly-qt6, and they don't seem to have any issues.

@AlphaCraft9658
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests