Bug 504916 - Background color + non-colored numbers causes the game to be a pure guessing game.
Summary: Background color + non-colored numbers causes the game to be a pure guessing ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Fifteen Puzzle widget (other bugs)
Version First Reported In: 6.3.5
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-28 15:54 UTC by Jan Bidler
Modified: 2025-08-10 21:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bidler 2025-05-28 15:54:32 UTC
SUMMARY
Having a background color but disabled colored numbers causes every piece to be exactly the same. Thus, it's no longer sensibly possible to solve the puzzle, as you don't know which piece is first, second, third etc.

STEPS TO REPRODUCE
1. Open fifteen configuration window
2. Enable background color, disable colored numbers
3. Apply

OBSERVED RESULT
Only way to solve the puzzle is now by pure guessing

EXPECTED RESULT
The "disable colored numbers" should only be possible to be disabled, if the the widget is using a background image as opposed to a background color.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450M DS3H
Comment 1 Bug Janitor Service 2025-05-31 10:38:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/848
Comment 2 cwo 2025-08-10 21:02:22 UTC
Git commit 4722d929381121ca19645fa40a0596f483ba4d2b by Christoph Wolk.
Committed on 10/08/2025 at 20:47.
Pushed by cwo into branch 'master'.

applets/fifteenpuzzle: use radio button for label config

Fifteen Puzzle allows the user to hide the number labels; this makes the
game more challenging (and somewhat more visually appealing) when a
background image is used, but virtually unplayable (an almost unwinnable
guessing game on reasonable board sizes) with a solid background color.
Currently, the settings allow you to go into this essentially broken
state.

Instead, use a radio button to select label with color or hidden label,
and force label display on solid color backgrounds for good measure.
When the user switches from image background to solid color, the label
radio button is automatically switched if necessary, and the invalid
radio button is disabled. And while we're touching this part, do some
routine updates to our current best practices, like setting translation
contexts and setting text and display properties on icon-only buttons.
FIXED-IN: 6.5.0

M  +1    -1    applets/fifteenPuzzle/package/contents/ui/Piece.qml
M  +44   -22   applets/fifteenPuzzle/package/contents/ui/configAppearance.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/4722d929381121ca19645fa40a0596f483ba4d2b