Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Machinaris theme(s) #24

Closed
Hukuma1 opened this issue May 19, 2021 · 5 comments
Closed

Machinaris theme(s) #24

Hukuma1 opened this issue May 19, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Hukuma1
Copy link

Hukuma1 commented May 19, 2021

Not a coder, so not sure how to do a PR. But wanted to share some theme adjustments. Default Machinaris looks a bit of a mix between light and dark mode, so I wanted to just darken the background.

machtheme1

<style> 
/* Main background color */
body {
  background-color: #15171a
}

/* Rounded sections */
.rounded-3 {
  border-radius: .5rem!important;
  background-color: #212529!important;
  -webkit-box-shadow: 0px 1px 0px 0px #000;
  box-shadow: 0px 1px 0px 0px #000;
  border: 0!important;
}

.text-success {
  color: #3aac59!important;
  font-weight: 500;
}

.display-6 {
  color: #c7c7c7;
}

/* Menu */
.col-auto.col-md-3.col-xl-2.px-sm-2.px-0.bg-dark {
  border-right: 1px solid #000;
}
</style>

Here is a default Chia GUI look (at least how it seems to look on Windows). Dark Mode:
machtheme2

<style> 
/* Main background color */
body {
  background-color: #303030
}

/* Rounded sections */
.rounded-3 {
  border-radius: .5rem!important;
  border: 0!important;
  -webkit-box-shadow: 0px 1px 0px 0px #000;
  box-shadow: 0px 1px 0px 0px #000;
  background-color: #424242!important;
}

.text-success {
  color: #3aac59!important;
  font-weight: 500;
}

.display-6 {
  color: #c7c7c7
}

/* Menu */
li .text-success {
  color: #fff!important;
}

.fs-4.bi-flower1 {
  color: #3aac59;
}

.fs-5.d-none.d-sm-inline {
  color: #3aac59;
}

.bg-dark {
  background-color: #424242!important;
}
</style>

And here is the light version:
machtheme3

<style> 
/* Main background color */
body {
  background: linear-gradient(45deg, #ffffff 30%, #fdfdfd 90%);
}

/* Rounded sections */
.rounded-3 {
  border-radius: .5rem!important;
  background-color: #fff!important;
  -webkit-box-shadow: 0px 1px 0px 0px #9e9e9e;
  box-shadow: 0px 1px 0px 0px #9e9e9e;
  border: 1px solid #ddd;
  important;
}

.text-success {
  color: #3aac59!important;
  font-weight: 500;
}

.display-6 {
  color: #757575;
}

/* Menu */
.col-auto.col-md-3.col-xl-2.px-sm-2.px-0.bg-dark {
  border-right: 1px solid #ddd;
}

li .text-success {
  color: #757575!important;
}

.fs-4.bi-flower1 {
  color: #3aac59;
}

.fs-5.d-none.d-sm-inline {
  color: #3aac59;
}

.bg-dark {
  background-color: #fff!important;
}

i.fs-4.bi-github {
  color: #757575!important;
}

.ms-1.d-none.d-sm-inline {
  color: #757575!important;
}
</style>

I'm sure I messed up some classes I've targeted or someone can do a better job, but this is a quick copy/paste to get those colors for now. Hopefully a theme toggle could be made and we could drop these in to customize.

@guydavis guydavis self-assigned this May 21, 2021
@guydavis guydavis added the enhancement New feature or request label May 21, 2021
@guydavis
Copy link
Owner

This is awesome! I've include your dark-mode improvements into Machinaris v0.2.1. I'll get your light-mode integrated in a future release with a toggle in UI. Great contribution.

@guydavis
Copy link
Owner

@antdragone Here's another interesting one for the frontend. Found a good article on using Bootstrap 5 for light/dark toggling. Might be a way to make this a setting that each user can toggle.

@guydavis guydavis added the help wanted Extra attention is needed label May 25, 2021
@Hukuma1
Copy link
Author

Hukuma1 commented May 26, 2021

Surprised BS doesn't have any scrollbar skinning abilities...

Love your new logs feature and thought maybe we could add custom scrollbars for Machinaris to match the current dark theme?

http://webkit-scroll-gen.sourceforge.net/ = quick generator to make the code

https://caniuse.com/?search=webkit-scrollbar shows support to be over 91% of all browsers. Sorry Firefox... :/

@Hukuma1
Copy link
Author

Hukuma1 commented May 26, 2021

machscroll

<style type="text/css">
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: #3aac59;
  border: 0px none #ffffff;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3aac59;
}
::-webkit-scrollbar-thumb:active {
  background: #3aac59;
}
::-webkit-scrollbar-track {
  background: #15171a;
  border: 0px none #ffffff;
  border-radius: 3px;
}
::-webkit-scrollbar-track:hover {
  background: #15171a;
}
::-webkit-scrollbar-track:active {
  background: #15171a;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
</style>

@guydavis
Copy link
Owner

@Hukuma1 Sorry, just spotted this! Great suggestion on the scrollbars. You are a wizard at the UI my friend. I'll include in next release! Hopefully next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants