Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for custom CSS skins #832

Closed

Conversation

SamCarlberg
Copy link
Member

@SamCarlberg SamCarlberg commented Mar 1, 2017

I'm opening this PR just to make this visible to anyone who wants to give input during development. There is still a lot of room for improvement, visually.

This also needs to get reworked to store arbitrarily many themes in ~/GRIP and offer a UI to choose between them, possibly with previews (like how Slack does it)

Screenshots

Empty

Empty

Add a source

Add webcam

Warning

Warning alert

With steps and connections

With steps

Deploy dialog

Deploy

Analysis window

Analysis

Settings

screenshot from 2017-03-01 00-15-18

About

screenshot from 2017-03-01 00-16-34

Should get reworked to store arbitrarily many themes in ~/GRIP and offer a UI to choose between them, possibly with previews (like how Slack does it)

Still need to fix socket-handle
@JLLeitschuh
Copy link
Member

🎆 Yes!!! I like this!!! 🎆

@bradamiller
Copy link
Member

Sam

I was curious how much work you figured it would take to add the UI to be able to select themes and if that was all that it needed to be finished? It seems reasonable to start out with the two (old look and dark mode), then think about more or get contributions.

Split controls css into its own file
Add pseudoclasses for started and stopped StartStoppableButtons
Fixed analysis pane css not updating
@codecov-io
Copy link

codecov-io commented Mar 2, 2017

Codecov Report

Merging #832 into master will decrease coverage by 0.15%.
The diff coverage is 41.6%.

@@             Coverage Diff             @@
##             master    #832      +/-   ##
===========================================
- Coverage     52.35%   52.2%   -0.16%     
- Complexity     1134    1147      +13     
===========================================
  Files           240     244       +4     
  Lines          7724    7848     +124     
  Branches        526     539      +13     
===========================================
+ Hits           4044    4097      +53     
- Misses         3494    3561      +67     
- Partials        186     190       +4


.range-slider .high-thumb, .range-slider .low-thumb, .slider .thumb {
-fx-background-color: gripsandy;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline at end of file.

Copy link
Member Author

@SamCarlberg SamCarlberg Mar 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Might want to make it save to a file in ~/GRIP/ instead of ... whatever it is that Preferences decides to use
Also made this work for the server port while I'm at it
@nightpool
Copy link

nightpool commented Mar 3, 2017

looking really good! some feedback:

image

The white borders around menu bars are really distracting. Compare the subtler shadow effect on the light theme:

image


image

Very little contrast in the background for the title of each section. The light grey is very close to the light green of the section borders, making it hard to distinguish the background of that title section from the borders, and thus muddying the borders in general. Compare to the high contrast of the light theme:

image

I would recommending getting rid of the backgrounds in this section entirely, adding dark borders where they don't already exist (preview and palette, sources already has a border for some reason?) and making the text bigger (because the white has less contrast on the grey then the black does on the tan background, so you should compensate by increasing the text size)


The search bar not having any borders is kinda weird:
image
image


there should be more space between these two buttons if there isn't going to be a border between them:

image


The stop button here should be bigger. it's really hard to see/understand right now:

image

Also, the "pulsing" play button is very light/hard to see/looks like it's disabled:

grip-playbutton


some weird white lines on the "benchmark" screen:

image

and in the "file" menu:

image

those should probably both be dark


If we're doing borderless, this dialogue needs more spacing too:

image

(add network table source)

@nightpool
Copy link

In general, there are two main "overall" design issues that need to be addressed.

  • The dark theme is flat, while the light theme is a more traditional skeuomorphic look-and-feel. this is good—I like it a lot more—but it requires a little more care in choosing spacing, where borders go, where we're using shadows, etc. Right now we're pretty inconsistent on where we're using borders. For example, we have a solid thick black border around preview output, and in the pipeline, but no borders at all in the palette or around headers. this leads to an inconsistent visual metaphor and a confusing user experience.

  • Everything is pretty weirdly blue. I really like it for the "selected" state, but I feel like the body text needs to be more desaturated—it feels like i'm using a 70s 2-color CRT terminal. Also the body text is honestly slightly too bright. Tweaking the main text color should fix both of these problems.

SamCarlberg added a commit to SamCarlberg/GRIP that referenced this pull request Apr 10, 2017
…ects#832

Small improvements to hex grid placement, no more weird boders
@JLLeitschuh
Copy link
Member

@nightpool Thanks for taking the time to review this PR and really give a solid review of the coloring and design.

@SamCarlberg
Copy link
Member Author

So these tests are failing on Travis, Appveyor, and my Linux laptop... but not on my Windows 10 desktop. I'm very tempted to just @Ignore all those tests since it seems (to me) to be an issue with testfx

JLLeitschuh pushed a commit that referenced this pull request May 5, 2017
* Make the preloader have a fancy background

Remove the progress bar from the preloader as well

* Make colors stand out a bit more

* Change to dark color theme. Should probably depend on #832

Small improvements to hex grid placement, no more weird boders
@SamCarlberg
Copy link
Member Author

Closing this PR. I may open a PR in the future with a better theme

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants