Skip to content

feat(Notifications): add option to disable popup background fill#2708

Open
A1ca7raz wants to merge 1 commit into
AvengeMedia:masterfrom
A1ca7raz:disable_notification_bg
Open

feat(Notifications): add option to disable popup background fill#2708
A1ca7raz wants to merge 1 commit into
AvengeMedia:masterfrom
A1ca7raz:disable_notification_bg

Conversation

@A1ca7raz

Copy link
Copy Markdown
  • New "Disable Background Fill" toggle in Settings > Notifications
  • Adds notificationPopupBgDisabled setting (default off)
  • Popup renders transparent fill in connected frame mode, keeping blur/border
  • Toggle only visible when Connected Frame Mode is active

Description

Add a "Disable Background Fill" toggle (Connected Frame Mode only) that makes notification popups render with a transparent fill for a more seamless, glass-like integration with the shell.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

image image image image

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dlx-docs to document any new behaviors: https://github.com/AvengeMedia/DankLinux-Docs

- New "Disable Background Fill" toggle in Settings > Notifications
- Adds notificationPopupBgDisabled setting (default off)
- Popup renders transparent fill in connected frame mode, keeping blur/border
- Toggle only visible when Connected Frame Mode is active
@Spoch-dev

This comment was marked as spam.

visible: SettingsData.connectedFrameModeActive
tags: ["notification", "popup", "background", "color", "fill", "transparent", "blur"]
text: I18n.tr("Disable Background Fill")
description: I18n.tr("Render notification popups with no fill color, letting blur and border show through.")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer to remove the description for less translation burden, maybe instead show a test notification like changing the position does - which makes it clear whats different from the setting

targetRadius: win.connectedFrameMode ? Theme.connectedSurfaceRadius : Theme.cornerRadius
targetColor: win.connectedFrameMode ? Theme.floatingSurface : Theme.readableSurface
targetColor: (win.connectedFrameMode && SettingsData.notificationPopupBgDisabled)
? "transparent"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also use Theme.withAlpha... instead of "transparent"

@bbedward

Copy link
Copy Markdown
Collaborator

This is also equivalent to this setting
image

albeit, that one applies to multiple surfaces and isnt targeted to notifications only

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

Successfully merging this pull request may close these issues.

3 participants