diff --git a/src/components/ConfigurationItem/ConfigurationItem.js b/src/components/ConfigurationItem/ConfigurationItem.js
index 22e4097..99604ff 100644
--- a/src/components/ConfigurationItem/ConfigurationItem.js
+++ b/src/components/ConfigurationItem/ConfigurationItem.js
@@ -36,10 +36,15 @@ export default connect(null, mapDispatchToProps)(props => {
let data;
switch (props.template.type) {
case "bool":
- data = handleChanged(e)}
- type={'checkbox'}/>;
+ data = (
+
+ );
break;
case "double":
diff --git a/src/components/MountItem/MountItem.js b/src/components/MountItem/MountItem.js
index b9d039b..e3fe526 100644
--- a/src/components/MountItem/MountItem.js
+++ b/src/components/MountItem/MountItem.js
@@ -125,9 +125,13 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
colSpan={28}
row={secondRow}
rowSpan={7}>
- Auto-mount
+
);
@@ -136,9 +140,13 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
colSpan={24}
row={secondRow}
rowSpan={7}>
- Restart
+
);
diff --git a/src/css/checkbox.css b/src/css/checkbox.css
new file mode 100644
index 0000000..807e682
--- /dev/null
+++ b/src/css/checkbox.css
@@ -0,0 +1,68 @@
+/* Customize the label (the container) */
+label.CheckBoxOwner {
+ position: relative;
+ padding-left: 24px;
+ cursor: pointer;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+/* Hide the browser's default checkbox */
+label.CheckBoxOwner input[type=checkbox] {
+ position: absolute;
+ opacity: 0;
+ cursor: pointer;
+ height: 0;
+ width: 0;
+}
+
+/* Create a custom checkbox */
+.CheckMark {
+ display: block;
+ margin: 0;
+ border-radius: var(--border_radius);
+ background-color: var(--control_background);
+ box-sizing: border-box;
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 20px;
+ width: 20px;
+}
+
+/* On mouse-over, add a grey background color */
+label.CheckBoxOwner:hover input[type=checkbox] ~ .CheckMark {
+ background-color: var(--control_background_hover);
+}
+
+/* When the checkbox is checked, add a blue background */
+label.CheckBoxOwner input:checked ~ .CheckMark {
+ background-color: var(--control_background);
+}
+
+/* Create the CheckMark/indicator (hidden when not checked) */
+.CheckMark:after {
+ content: "";
+ position: absolute;
+ display: none;
+}
+
+/* Show the CheckMark when checked */
+label.CheckBoxOwner input:checked ~ .CheckMark:after {
+ display: block;
+}
+
+/* Style the CheckMark/indicator */
+label.CheckBoxOwner .CheckMark:after {
+ left: 6px;
+ top: 1px;
+ width: 5px;
+ height: 10px;
+ border: solid var(--heading_text_color);
+ border-width: 0 3px 3px 0;
+ -webkit-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
\ No newline at end of file
diff --git a/src/index.css b/src/index.css
index 0fdc626..7bf278e 100644
--- a/src/index.css
+++ b/src/index.css
@@ -2,7 +2,7 @@
--border_radius: 4px;
--control_background: rgba(105, 105, 150, 0.2);
- --control_background_hover: rgba(105, 105, 150, 0.3);
+ --control_background_hover: rgba(105, 105, 150, 0.4);
--control_border: 1px solid rgba(80, 80, 90, 0.9);
--control_box_shadow: 2px 2px 2px black;
--control_transparent_background: rgba(10, 10, 16, 0.5);
diff --git a/src/index.js b/src/index.js
index 22a184f..e3df023 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,6 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
+import './css/checkbox.css';
import App from './App';
import createAppStore from './redux/store/createAppStore';
import {getIPCRenderer} from './utils';