Skip to content

Commit

Permalink
Merge pull request #31 from DeltaCopy/qt6
Browse files Browse the repository at this point in the history
Don't blur the entire region if alpha channel is < 255
  • Loading branch information
Bali10050 authored Oct 22, 2024
2 parents b5f3903 + a5871a5 commit 442d831
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/archlinux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install sudo, git and compile dependencies
run: |
pacman -Sy sudo git binutils make gcc pkg-config fakeroot \
cmake extra-cmake-modules \
cmake extra-cmake-modules qt6-base \
kdecoration qt6-declarative kcoreaddons \
kcmutils kcolorscheme kconfig kguiaddons \
kiconthemes kwindowsystem --noconfirm
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ jobs:
cache-file-path: ${{ needs.release-ci.outputs.ASSET }}
version: ${{ needs.release-ci.outputs.VERSION }}

Archlinux:
needs: release-ci
uses: ./.github/workflows/archlinux-ci.yml
with:
version: ${{ needs.release-ci.outputs.VERSION }}
# Archlinux:
# needs: release-ci
# uses: ./.github/workflows/archlinux-ci.yml
# with:
# version: ${{ needs.release-ci.outputs.VERSION }}

6 changes: 4 additions & 2 deletions kstyle/lightlyblurhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ namespace Lightly
else
{
// blur entire window
// QT 6.8 now causes issues here when the alpha channel of the color scheme is < 255 with systemsettings
if( widget->palette().color( QPalette::Window ).alpha() < 255 )
return roundedRegion(rect, StyleConfigData::cornerRadius(), false, false, true, true);

//return roundedRegion(rect, StyleConfigData::cornerRadius(), false, false, true, true);
return QRegion();

// blur specific widgets
QRegion region;

Expand Down

0 comments on commit 442d831

Please sign in to comment.