|
@@ -3,12 +3,12 @@ import { Observable } from "babylonjs/Misc/observable";
|
|
|
import { Color3, Color4 } from "babylonjs/Maths/math.color";
|
|
|
import { PropertyChangedEvent } from "./propertyChangedEvent";
|
|
|
import { NumericInputComponent } from "./numericInputComponent";
|
|
|
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
-import { faMinus, faPlus } from "@fortawesome/free-solid-svg-icons";
|
|
|
import { GlobalState } from '../globalState';
|
|
|
import { ColorPickerLineComponent } from './colorPickerComponent';
|
|
|
|
|
|
const copyIcon: string = require("./copy.svg");
|
|
|
+const plusIcon: string = require("./plus.svg");
|
|
|
+const minusIcon: string = require("./minus.svg");
|
|
|
|
|
|
export interface IColor3LineComponentProps {
|
|
|
label: string;
|
|
@@ -139,7 +139,7 @@ export class Color3LineComponent extends React.Component<IColor3LineComponentPro
|
|
|
|
|
|
render() {
|
|
|
|
|
|
- const chevron = this.state.isExpanded ? <FontAwesomeIcon icon={faMinus} /> : <FontAwesomeIcon icon={faPlus} />;
|
|
|
+ const expandedIcon = this.state.isExpanded ? minusIcon : plusIcon;
|
|
|
|
|
|
return (
|
|
|
<div className="color3Line">
|
|
@@ -156,7 +156,7 @@ export class Color3LineComponent extends React.Component<IColor3LineComponentPro
|
|
|
<img src={copyIcon} alt=""/>
|
|
|
</div>
|
|
|
<div className="expand hoverIcon" onClick={() => this.switchExpandState()} title="Expand">
|
|
|
- {chevron}
|
|
|
+ <img src={expandedIcon} alt=""/>
|
|
|
</div>
|
|
|
</div>
|
|
|
{
|