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

[36233] OpenProject Dark Mode #15366

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from

Conversation

bsatarnejad
Copy link
Contributor

@lindenthal
Copy link
Member

Hi @HDinger,
How do I activate the feature flag on PP?
Best
Niels

Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

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

Hi @bsatarnejad

I know that this is still in a Draft state so I did not check the code into detail yet. I just found some places where I originally used the old (deprecated) variables which are now not supported any more.

--avatar-border-color: var(--avatar-borderColor);
--list-item-hover--border-color: var(--control-transparent-borderColor-hover);
--list-item-hover--color: var(--fgColor-default);
--list-item-hover--color: var(--color-action-list-item-default-hover-bg);
Copy link
Contributor

Choose a reason for hiding this comment

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

That variable does not exist any more.

--main-menu-fieldset-header-color: var(--fgColor-muted) !important;
--main-menu-border-width: 1px;
--button-default-borderColor-rest: var(--borderColor-default);
--button--border-color: var(--color-btn-border);
Copy link
Contributor

Choose a reason for hiding this comment

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

--color-btn-border does also not exist any more. It is now named --button-default-borderColor-rest

--main-menu-border-width: 1px;
--button-default-borderColor-rest: var(--borderColor-default);
--button--border-color: var(--color-btn-border);
--button--primary-font-color: var(--button-primary-fgColor-rest);
--button--primary-background-hover-color: var(--button-primary-bgColor-hover);
--button--primary-background-color: var(--button-primary-bgColor-rest);
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this doesn't work correctly:
Bildschirmfoto 2024-04-26 um 08 40 09

--button--primary-background-hover-color: var(--button-primary-bgColor-hover);
--button--primary-background-color: var(--button-primary-bgColor-rest);
--button--active-border-color: var(--borderColor-default);
--button--active-border-color: var(--color-btn-border);
--button--font-color: var(--color-btn-text);
Copy link
Contributor

Choose a reason for hiding this comment

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

That variable also does not exist any more.

@@ -79,7 +79,7 @@ $pagination--font-size: 0.8125rem
min-width: 25px
text-align: center
padding: 3px 3px
background: #f8f8f8
background: var(--button--background-color)
Copy link
Contributor

Choose a reason for hiding this comment

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

--button--background-color is also deprecated by now

@@ -93,17 +93,17 @@ li.change

&::before
content: '▸'
color: var(--fgColor-muted)
color: var(--color-fg-muted)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please undo this change as fgColor-muted is the correct variable name

font-weight: var(--base-text-weight-bold)
width: 100%
text-align: left

&:hover
background-color: #f5faff
color: #333
background-color: var(--list-item-hover--color)
Copy link
Contributor

Choose a reason for hiding this comment

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

--list-item-hover--color does not exist any more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants