Commit 5b5308a2 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Updating icons

parent 5c6375727b4d
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"/><path fill="none" d="M0 0h24v24H0z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="none" d="M0 0h20v20H0V0z"/><path d="M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>
\ No newline at end of file
......@@ -82,6 +82,7 @@ class Popup extends React.Component<{}, State> {
this.onPaneTab = this.onPaneTab.bind(this);
this.onPaneSources = this.onPaneSources.bind(this);
this.onPaneViews = this.onPaneViews.bind(this);
this.onTunOff = this.onTunOff.bind(this);
this.onUpdateTabCommand = this.onUpdateTabCommand.bind(this);
this.onTabCommandAutomatic = this.onTabCommandAutomatic.bind(this);
this.onTabCommandClearTopic = this.onTabCommandClearTopic.bind(this);
......@@ -147,6 +148,8 @@ class Popup extends React.Component<{}, State> {
this.setState(this.state);
}
onTunOff() {}
onUpdateTabCommand() {
updateCurrentCommand(this.state.tabId, this.state.data.command);
this.setState(this.state);
......@@ -254,10 +257,17 @@ class Popup extends React.Component<{}, State> {
return (
<div className="container-fluid">
<div className="row">
<div className="col-4">
<a onClick={this.onPaneSources} title="Configuration">
<div className="col-2">
<a className="btn btn-outline-light" onClick={this.onPaneSources} title="Configuration">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
<img width="24px" src="../icons/settings.svg" />
</span>
</a>
</div>
<div className="col-2">
<a className="btn btn-outline-light" onClick={this.onTunOff} title="Turn off on this tab">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
{"\u2699"}
<img width="24px" src="../icons/off.svg" />
</span>
</a>
</div>
......@@ -290,7 +300,7 @@ class Popup extends React.Component<{}, State> {
<div className="col-8">
{!isTopicOnAuto ? (
<div>
<a
<a className="btn btn-outline-light"
onClick={this.onTabCommandClearTopic}
title="Clear selected topic"
>
......@@ -434,23 +444,23 @@ class Popup extends React.Component<{}, State> {
<div className="container-fluid">
<div className="row">
<div className="col-2">
<a onClick={this.onPaneTab} title="Back">
<a className="btn btn-outline-light" onClick={this.onPaneTab} title="Back">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
{"\u2190"}
<img width="24px" src="../icons/back.svg" />
</span>
</a>
</div>
<div className="col-2">
<a onClick={this.onPaneViews} title="Available views">
<a className="btn btn-outline-light" onClick={this.onPaneViews} title="Available views">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
{"\u23FF"}
<img width="24px" src="../icons/view.svg" />
</span>
</a>
</div>
<div className="col-2">
<a onClick={this.onButtonReloadRegistry} title="Reload registry">
<a className="btn btn-outline-light" onClick={this.onButtonReloadRegistry} title="Reload registry">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
{"\u21bb"}
<img width="24px" src="../icons/refresh.svg" />
</span>
</a>
</div>
......@@ -494,7 +504,7 @@ class Popup extends React.Component<{}, State> {
<div className="row" key={"source-" + index}>
<div className="col-2">
{source.kind != definition.ViewRegistrySourceKind.inline ? (
<a title="Remove this source">
<a className="btn btn-outline-light" title="Remove this source">
<span
onClick={() => this.onRegistryRemoveSource(index)}
style={{ cursor: "pointer" }}
......@@ -537,16 +547,16 @@ class Popup extends React.Component<{}, State> {
<div className="container-fluid">
<div className="row">
<div className="col-2">
<a onClick={this.onPaneSources} title="Back">
<a className="btn btn-outline-light" onClick={this.onPaneSources} title="Back">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
{"\u2190"}
<img width="24px" src="../icons/back.svg" />
</span>
</a>
</div>
<div className="col-2">
<a onClick={this.onButtonReloadRegistry} title="Reload registry">
<a className="btn btn-outline-light" onClick={this.onButtonReloadRegistry} title="Reload registry">
<span style={{ fontSize: "20pt", cursor: "pointer" }}>
{"\u21bb"}
<img width="24px" src="../icons/refresh.svg" />
</span>
</a>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment