Commit 4098c88
committed
[Spreadsheet] Use stylesheet for alias color
When setting the text color for an invalid alias, use the Qt stylesheeet
mechanism rather than QPalette, so that it works correctly with
an applied QSS stylesheeet. Also attempt to detect a darkmode stylesheet
and use lighter shade of red so that the alias is more legible. Finally,
instead of explicitly setting the text color to black when it's valid,
reset to the original stylesheet (usually an empty string). This ensures
that in a dark stylesheet the text color is legible.
Fixes #4803.1 parent 7b3c3e6 commit 4098c88
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
423 | 428 | | |
424 | 429 | | |
425 | 430 | | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
429 | 434 | | |
430 | | - | |
| 435 | + | |
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
434 | 439 | | |
435 | 440 | | |
436 | | - | |
| 441 | + | |
437 | 442 | | |
438 | | - | |
439 | | - | |
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
| |||
0 commit comments