diff --git a/src/app/common/common.less b/src/app/common/common.less index 0eece252..afd60e82 100644 --- a/src/app/common/common.less +++ b/src/app/common/common.less @@ -992,6 +992,26 @@ } } + &.color-yellow { + &.solid { + border-color: @warning-yellow; + background-color: mix(@warning-yellow, @term-white, 50%); + box-shadow: none; + } + + &.outlined { + color: @warning-yellow; + border-color: @warning-yellow; + &:hover { + color: @term-white; + border-color: @term-white; + } + } + + &.ghost { + } + } + &.color-red { &.solid { border-color: @term-red; diff --git a/src/app/common/common.tsx b/src/app/common/common.tsx index 5afeb980..a328049e 100644 --- a/src/app/common/common.tsx +++ b/src/app/common/common.tsx @@ -229,6 +229,7 @@ interface ButtonProps { leftIcon?: React.ReactNode; rightIcon?: React.ReactNode; color?: string; + style?: React.CSSProperties; } class Button extends React.Component { @@ -236,6 +237,7 @@ class Button extends React.Component { theme: "primary", variant: "solid", color: "", + style: {}, }; @boundMethod @@ -246,13 +248,14 @@ class Button extends React.Component { } render() { - const { leftIcon, rightIcon, theme, children, disabled, variant, color } = this.props; + const { leftIcon, rightIcon, theme, children, disabled, variant, color, style } = this.props; return ( + + ); } diff --git a/src/model/model.ts b/src/model/model.ts index f2c145ac..271c7ffc 100644 --- a/src/model/model.ts +++ b/src/model/model.ts @@ -357,6 +357,7 @@ class Screen { renderers: Record = {}; // lineid => RendererModel shareMode: OV; webShareOpts: OV; + filterRunning: OV; constructor(sdata: ScreenDataType) { this.sessionId = sdata.sessionid; @@ -393,6 +394,9 @@ class Screen { this.webShareOpts = mobx.observable.box(sdata.webshareopts, { name: "screen-webShareOpts", }); + this.filterRunning = mobx.observable.box(false, { + name: "screen-filter-running", + }) } dispose() {}