mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Switching color theme globally (#728)
* Adding cluster menu colors Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Adding theme class name flag into #app Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Cleaning up mixins Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Tuning up Wizard Layout styles Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Using theme-light global flag Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Minor style fixes Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Using .theme-light flag across components Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Set theme as @computed value Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Preventing Drawer slide-in scroll flickering Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Setting background for settings views Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Minor layout fixes Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Switching AceEditor theme reactively Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Cleaning up Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
c7b11f86af
commit
0f11b03692
26 files changed
+85
-87
No files matched your search
@@ -9,7 +9,7 @@
|
||||
box-shadow: 0 0 $unit * 2 $boxShadow;
|
||||
z-index: $zIndex-drawer;
|
||||
|
||||
&.light {
|
||||
.theme-light & {
|
||||
.drawer-content {
|
||||
@include custom-scrollbar(dark);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import { cssNames, noop } from "../../utils";
|
||||
import { Icon } from "../icon";
|
||||
import { Animate, AnimateName } from "../animate";
|
||||
import { history } from "../../navigation";
|
||||
import { themeStore } from "../../theme.store";
|
||||
|
||||
export interface DrawerProps {
|
||||
open: boolean;
|
||||
@@ -101,7 +100,7 @@ export class Drawer extends React.Component<DrawerProps> {
|
||||
render() {
|
||||
const { open, position, title, animation, children, toolbar, size, usePortal } = this.props
|
||||
let { className, contentClass } = this.props;
|
||||
className = cssNames("Drawer", className, position, themeStore.activeTheme.type);
|
||||
className = cssNames("Drawer", className, position);
|
||||
contentClass = cssNames("drawer-content flex column box grow", contentClass);
|
||||
const style = size ? { "--size": size } as React.CSSProperties : undefined;
|
||||
const drawer = (
|
||||
|
||||
Reference in new issue
Block a user