danionita / e3tools

e3tool is a Java GUI-based tool for constructing and evaluating e3value models. Includes the e3fraud fraud assessment extension
Other
3 stars 4 forks source link

Custom styles #14

Closed bobismijnnaam closed 7 years ago

bobismijnnaam commented 8 years ago

Right now there is zero custom styling in the editor. Ideally:

danionita commented 8 years ago

I'd go with: folder where default style files are stored on first launch. Menu item by which any style file in the folder can be selected or applied. Individual changes to specific elements saved bundled with value model.

bobismijnnaam commented 8 years ago

So what kind of specific customization features do we want to offer to the users? Just background colors, font sizes/styles, what else?

danionita commented 8 years ago

Background color and font size should be sufficient for now. Maybe font color too.

On Sun, Aug 21, 2016 at 1:12 PM, Bob Rubbens notifications@github.com wrote:

So what kind of specific customization features do we want to offer to the users? Just background colors, font sizes/styles, what else?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/14#issuecomment-241251623, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjEpFSiFw0ehRiju0agtA6bgNqLf7bWks5qiDKYgaJpZM4JOlNK .

bobismijnnaam commented 7 years ago

Did background color, font size, font color as of 652743d9913a70e5be0ce5977696f3b287c76741. Needed to pull some funky tricks to get the marketsegment entity to behave, but it worked :D Next up, probably styles that the user can pick for the overall look of the model. Oh, and probably should add edge (color/thickness?) styling as well.

danionita commented 7 years ago

Edge color is enough.

On Sun, Sep 11, 2016 at 3:23 AM, Bob Rubbens notifications@github.com wrote:

Did background color, font size, font color as of 652743d https://github.com/danionita/e3tools/commit/652743d9913a70e5be0ce5977696f3b287c76741. Needed to pull some funky tricks to get the marketsegment entity to behave, but it worked :D Next up, probably styles that the user can pick for the overall look of the model. Oh, and probably should add edge (color/thickness?) styling as well.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/14#issuecomment-246131193, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjEpLtKz7QHifXlvKfC1Afi4hJPjijvks5qowOwgaJpZM4JOlNK .

bobismijnnaam commented 7 years ago

So right now I've got themes partially working. When the user selects a specific color for an actor, and then selects another theme, the actor which was just colored a specific color retains its specific color. So if I make an actor pink, and then select the E3Mono style, the actor will remain pink, while all the other actors will be extra grey. Is this desired behaviour or do we want to delete specific settings when a new theme is selected? Right now this behaviour seems consistent, which would make development easier, but I'm not entirely sure so it probably needs some work anyway to cover all the edge cases.

danionita commented 7 years ago

Imo applying a theme should override all applicable element colours.

On 18 Sep 2016 16:21, "Bob Rubbens" notifications@github.com wrote:

So right now I've got themes partially working. When the user selects a specific color for an actor, and then selects another theme, the actor which was just colored a specific color retains its specific color. So if I make an actor pink, and then select the E3Mono style, the actor will remain pink, while all the other actors will be extra grey. Is this desired behaviour or do we want to delete specific settings when a new theme is selected? Right now this behaviour seems consistent, which would make development easier, but I'm not entirely sure so it probably needs some work anyway to cover all the edge cases.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/14#issuecomment-247850417, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjEpCdayKYHrQosk3BsaFXOgEYzMryiks5qrUjSgaJpZM4JOlNK .

bobismijnnaam commented 7 years ago

Okay, situation atm:

Things not supported atm:

I guess that's it. It should be thoroughly tested but I haven't been able to find any bugs. For now I'll only look at the first point. The other 3 I'll work on if @danionita wants them too.

bobismijnnaam commented 7 years ago

As of 925746048bf441cebab497fe289e68310c8983f3 the user can undo theme changes.

danionita commented 7 years ago

Great progress!

  • Style changes cannot be undone (e.g. going back to the previous style using ctrl+z). I'm not sure if it's possible to support this but I think it should be possible, we'll see.

I see you' added this. Great.

  • If the user downloads a theme from the internet with the same name as one he has made himself, he has to delete his own theme to use the other one. Pretty fundamental problem. Users could solve this by prefixing their own themes with their name or something. Is however still a concern to us to some extent.

No problem. The tool would have to become a lot more mainstream before this becomes an issue, and even then, new themes should have new names :) This is a huge improvement anyway.... Consider the old tool supported only one style file, which had to be overwritten if you wanted any changes to apply to an entire model. (also re-launching the tool and going through some weird process to get it to apply).

  • Maybe a "create blank style" button somewhere that creates a default style in the users e3tool/styles directory? Such that the user does not have to copy paste things around and only has to edit the thins he wants to change.

How about just a "save style" button, which save whichever global preferences the user currently has as a style file in the .../styles folder? Wouldn't that be easier and more intuitive?

  • I'd like a preview box when selecting a theme. This, combined with a warning, might eliminate the need to undo theme changes (but I still think it should be supported)

I think a photo is sufficient, right? An even fancier way would be to have a mini-view, with a 2 actor model included in the window which updates when selecting a theme.

BTW, I've sent out the tool to D-Telekom last week.

I guess that's it. It should be thoroughly tested but I haven't been able to find any bugs.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/14#issuecomment-249418563, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjEpKOKthyrm7BeKP2r-_BRQrpKtVs8ks5qtmXygaJpZM4JOlNK .

bobismijnnaam commented 7 years ago
  • Maybe a "create blank style" button somewhere that creates a default style in the users e3tool/styles directory? Such that the user does not have to copy paste things around and only has to edit the thins he wants to change.

How about just a "save style" button, which save whichever global preferences the user currently has as a style file in the .../styles folder? Wouldn't that be easier and more intuitive?

Depends. To make a feature like that useful we would also need some "structural" editing buttons. Like "set default actor color" or "set default font color". We could have something like that, though. What kind of structural settings do we want in that case? Just default colors of value activies/market segments/actors, connection elements, and value exchanges, and maybe default font colors and font sizes? Maybe make categories for value exchange labels and entity labels? That way e3tool comes with a built-in "theme editor".

Altough I'm not sure if this has a very high priority. I think multi select is more important and harder than this.

  • I'd like a preview box when selecting a theme. This, combined with a warning, might eliminate the need to undo theme changes (but I still think it should be supported)

I think a photo is sufficient, right? An even fancier way would be to have a mini-view, with a 2 actor model included in the window which updates when selecting a theme.

Yeah, we could show some default model (one of the examples?) that uses every styling feature with the styling applied. Shouldn't take too much time.

BTW, I've sent out the tool to D-Telekom last week.

Looking forward to their response!

danionita commented 7 years ago

Hi Bob,

Since individual elements can be customized easily and custom themes can be defined via the style files, that is enough for now.

Best regards, Dan Ionita

On Sep 26, 2016 5:09 PM, "Bob Rubbens" notifications@github.com wrote:

  • Maybe a "create blank style" button somewhere that creates a default style in the users e3tool/styles directory? Such that the user does not have to copy paste things around and only has to edit the thins he wants to change.

How about just a "save style" button, which save whichever global preferences the user currently has as a style file in the .../styles folder? Wouldn't that be easier and more intuitive?

Depends. To make a feature like that useful we would also need some "structural" editing buttons. Like "set default actor color" or "set default font color". We could have something like that, though. What kind of structural settings do we want in that case? Just default colors of value activies/market segments/actors, connection elements, and value exchanges, and maybe default font colors and font sizes? Maybe make categories for value exchange labels and entity labels? That way e3tool comes with a built-in "theme editor".

Altough I'm not sure if this has a very high priority. I think multi select is more important and harder than this.

  • I'd like a preview box when selecting a theme. This, combined with a warning, might eliminate the need to undo theme changes (but I still think it should be supported)

I think a photo is sufficient, right? An even fancier way would be to have a mini-view, with a 2 actor model included in the window which updates when selecting a theme.

Yeah, we could show some default model (one of the examples?) that uses every styling feature with the styling applied. Shouldn't take too much time.

BTW, I've sent out the tool to D-Telekom last week.

Looking forward to their response!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/14#issuecomment-249598490, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjEpG7oFJ3L9kAGsVWs1EInGiTo_c02ks5qt-AhgaJpZM4JOlNK .

danionita commented 7 years ago

Jaap mentioned that, since the old tool had a "theme editor", we should have one too. Therefore, we need:

Sidenote: the preferences window in the old tool looks rather "standard". Maybe we could find something similar?

image

bobismijnnaam commented 7 years ago

Well, I found this: http://jfontchooser.osdn.jp/site/jfontchooser/screenshots.html Altough it does just te font, it might do for text.

Found it on github: https://github.com/dheid/fontchooser with appropriate maven thing: http://search.maven.org/#artifactdetails%7Cio.github.dheid%7Cfontchooser%7C1.1%7Cjar

bobismijnnaam commented 7 years ago

It looks acceptable: image

danionita commented 7 years ago

Looks nice. I assume:

bobismijnnaam commented 7 years ago

Right on!

Op 14 dec. 2016 1:30 p.m. schreef "danionita" notifications@github.com:

Looks nice. I assume:

  • you will add the existing text color changer
  • there will be two versions of this: one for individual elements, and one for the theme (all elements of each type).

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/danionita/e3tools/issues/14#issuecomment-267022171, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8IaGJNPN3eq2A1LMuR541QHbXMj6Zfks5rH-FggaJpZM4JOlNK .

bobismijnnaam commented 7 years ago

Progress update: as of 227a4f137764b7a1d2a9e3fd714d47cf5f021ce4 I have improved the style selector to be more modular & also support stroke color. Next I will integrate it with our custom styling plan, such that the user can change all the actors, ms's, etc.

bobismijnnaam commented 7 years ago

Should work as of 3bd4465da8a0e2c868a188677f38a97d6efabe7d. @danionita Let me know if this suffices!