Opened 7 years ago
Closed 7 years ago
#13248 closed enhancement (fixed)
Allow cards of different colours
Reported by: | Owned by: | Peter Suter | |
---|---|---|---|
Priority: | normal | Component: | CardsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
As far as I can see, all cards are currently yellow. When working with many cards, it would be convenient to have cards of different colour to tell them apart more quickly.
Attachments (3)
Change History (11)
Changed 7 years ago by
Attachment: | T13248_colors.diff added |
---|
comment:1 Changed 7 years ago by
Changed 7 years ago by
Attachment: | Screen Shot 2017-07-30 at 02.02.54.png added |
---|
comment:2 Changed 7 years ago by
- The
PLUGIN_VERSION
value needs to be set to3
incore.py
- I haven't been able to get the Color selector to successfully select a value
- The width of the Color selector should probably be adjusted and blue is used for the currently selected entry, but should probably be transparent (see screen capture where the mouse was positioned over the yellow (first) entry)
Changed 7 years ago by
Attachment: | T13248_colors_v2.diff added |
---|
comment:4 Changed 7 years ago by
Second patch should work better, avoiding the problems mentioned in comment:2 and allows any colors by using the HTML color chooser control.
comment:5 Changed 7 years ago by
(Small typo in second patch, cards.js line 260 should be color: '#ffffe0', // default: yellow
(only four f
's, not five). This invalidated the initial selected color of new cards.)
comment:6 Changed 7 years ago by
Works well for me.
I looked for a way to close the color picker when the dialog is closed. It might not be possible: SO:34028501.
comment:8 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks again for testing.
Using the HTML color picker has the downside of less control and all sorts of platform differences, but the upside of being very low effort. For now it seems good enough to me, but feel free to suggest improvements.
Untested patch.
upgrade_tables()
.trac-card
without a color class.