embl-cba / imagej-utils

BSD 2-Clause "Simplified" License
2 stars 4 forks source link

Bookmarks ui #21

Closed K-Meech closed 3 years ago

K-Meech commented 3 years ago

Changes for bookmark ui

Main changes:

K-Meech commented 3 years ago

Thanks!! All looks good to me - I'll make those changes!

K-Meech commented 3 years ago

Ok - I've made all the changes (apart from switching to using enum - it's a bit difficult with how the generic dialogs are populated..) For the ARGBLut, I ended up adding getName() and also setName(). The setName() is needed as we have to account for when the transparency checkbox is ticked (and change the name accordingly).

I also had to add a special case for the A-R-G-B colour scheme, as here the ARGBLut is actually null.

tischi commented 3 years ago

it's a bit difficult with how the generic dialogs are populated

Yes, I know. So it's fine to not do it now.

and also setName(). The setName() is needed as we have to account for when the transparency checkbox is ticked (and change the name accordingly).

Not sure that's the best solution. If that's something generic to all ARGBLuts that maybe rather add a

setTransparency method, which would adapt the name in a consistent way?

Anyway, I'll merge now (maybe you could make an issue for the setTransparency and think about it later.

K-Meech commented 3 years ago

Sweet! I'll make an issue. Shall I upload it to MoBIEBeta so people can try it out?

tischi commented 3 years ago

Shall I upload it to MoBIEBeta so people can try it out?

Yes 🚀