浏览代码

"Copy to clipboard" is now always in gamma space

Popov72 5 年之前
父节点
当前提交
c7a9c9d5a0

+ 1 - 1
inspector/src/components/actionTabs/lines/color3LineComponent.tsx

@@ -117,7 +117,7 @@ export class Color3LineComponent extends React.Component<IColor3LineComponentPro
 
     copyToClipboard() {
         var element = document.createElement('div');
-        element.textContent = this.props.isLinear ? this.state.color.toLinearSpace().toHexString() : this.state.color.toHexString();
+        element.textContent = this.state.color.toHexString();
         document.body.appendChild(element);
 
         if (window.getSelection) {

+ 1 - 1
inspector/src/components/actionTabs/lines/color4LineComponent.tsx

@@ -143,7 +143,7 @@ export class Color4LineComponent extends React.Component<IColor4LineComponentPro
 
     copyToClipboard() {
         var element = document.createElement('div');
-        element.textContent = this.props.isLinear ? this.state.color.toLinearSpace().toHexString() : this.state.color.toHexString();
+        element.textContent = this.state.color.toHexString();
         document.body.appendChild(element);
 
         if (window.getSelection) {