BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

UX for LG/LU syntax highlight

Open hibrenda opened this issue 7 years ago • 17 comments

need to be consistent for lu/lg all up view and also for inline editor

hibrenda avatar Aug 30 '19 11:08 hibrenda

ping @DesignPolice :)

cwhitten avatar Sep 25 '19 22:09 cwhitten

got it

DesignPolice avatar Sep 25 '19 23:09 DesignPolice

ping @DesignPolice do we have a decision on colors?

cwhitten avatar Oct 04 '19 18:10 cwhitten

I had made one, but got some different feedback, let me circle back and see if one of the new options can get approved.

DesignPolice avatar Oct 04 '19 18:10 DesignPolice

I worked with Dong before he left town on this, things were looking a bit too orange for me, the cardinal was long standing color, my intention was just to make something that was a traditional VS color styling that used our colors when possible - but open to thoughts.

orange and cardinal are pretty similar hues

Here is the current linked Figma file https://www.figma.com/file/Ux0vucOvaLL2xH22WpFgV65X/MarcB_Composer-UI?node-id=3270%3A231

It can be a change next week, or CW and Vish can just make the tweaks. - M Screen Shot 2019-10-16 at 5 26 32 PM

DesignPolice avatar Oct 17 '19 00:10 DesignPolice

@cwhitten @boydc2014

This looks like this was backlogged, not a big deal - This was the last we looked at. v13 - My hope was to just get colors to be as familiar as we could get using VS "traditional" colors that were close to our color palettes -

https://www.figma.com/file/Ux0vucOvaLL2xH22WpFgV65X/MarcB_Composer-UI?node-id=3707%3A27305

Screen Shot 2019-11-01 at 2 38 57 PM

DesignPolice avatar Nov 01 '19 21:11 DesignPolice

Current color theme references vscode's recommend, use not more than 5 color (most-used by other languages) highlighting the document.

The color customization is written in this file:
https://github.com/microsoft/BotFramework-Composer/blob/fc61812bf3456bcb93287eb81b1d26b7f423e66f/Composer/packages/lib/code-editor/src/languages/lg.ts#L112-L124

preview with color:

image

zhixzhan avatar Nov 19 '19 10:11 zhixzhan

@DesignPolice need your suggestions

hibrenda avatar Nov 19 '19 10:11 hibrenda

Thanks @hibrenda and @zhixzhan we will discuss it this morning -

DesignPolice avatar Nov 19 '19 16:11 DesignPolice

Need discussion for syntax highlighting (template vs func) @DesignPolice @cwhitten image image

hibrenda avatar Dec 02 '19 10:12 hibrenda

Thanks Brenda, I will touchbase with Chris and Vish on this to get some feedback - thanks M

DesignPolice avatar Dec 02 '19 17:12 DesignPolice

Attached are the colors that Dong and I looked at - I don't use code editors - so my thought was that we should use Fabric colors that align with the default colors in Visual Studio. There are a couple of options on a few of them.

Making it as consistent as possible. If @cwhitten or @vishwacsena can help me verify that.

Screen Shot 2019-12-02 at 4 34 35 PM

DesignPolice avatar Dec 03 '19 00:12 DesignPolice

I talked to @tdurnford and he pulled up the default Visual Studio coloring - they have a variety of themes which would be a nice add for us in the future. Here is their base color on white. So maybe I can just sample colors from this in the Fabric palette - does anyone have issues with that? I don't think it is beautiful, but with only one option I think it should be familiar to start with.

MicrosoftTeams-image (5)

DesignPolice avatar Dec 03 '19 05:12 DesignPolice

I talked to @tdurnford and he pulled up the default Visual Studio coloring - they have a variety of themes which would be a nice add for us in the future. Here is their base color on white. So maybe I can just sample colors from this in the Fabric palette - does anyone have issues with that? I don't think it is beautiful, but with only one option I think it should be familiar to start with.

MicrosoftTeams-image (5)

No problem at all with keyword as blue, and string literal as dark red (right?), it's just we have more stuff, like template-name, and function(template-ref), we also need some color for that

boydc2014 avatar Dec 03 '19 06:12 boydc2014

This is a good example our colors today image

boydc2014 avatar Dec 03 '19 06:12 boydc2014

okay. After some frustration, I went through and checked colors on Visual Studio default colors, that hit contrast numbers. These descriptions came from @boydc2014 chatting about the different options.

so looking at the two attachments these are Composer colors, that hit contrast numbers, that are pretty similar to this VS default. There are lots of options built in to the Monaco editor that help with Accessibility

https://github.com/Microsoft/monaco-editor/wiki/Monaco-Editor-Accessibility-Guide

So lets try plugging these colors in and see how v14 looks in reality Screen Shot 2019-12-03 at 11 39 20 AM Screen Shot 2019-12-03 at 11 39 03 AM

thanks

DesignPolice avatar Dec 03 '19 19:12 DesignPolice

addressed in https://github.com/microsoft/BotFramework-Composer/pull/1706

cwhitten avatar Dec 05 '19 17:12 cwhitten