From 3b79315228abb76bb219ca3c8991e4f5ead98ff8 Mon Sep 17 00:00:00 2001 From: Rohit Awate Date: Mon, 30 Jul 2018 19:08:13 +0530 Subject: [PATCH] Add button to add new tab --- .../controllers/HomeWindowController.java | 1 + src/main/resources/assets/NewTabPlus.png | Bin 0 -> 582 bytes src/main/resources/css/Adreana.css | 12 +++++++++ .../resources/fxml/homewindow/HomeWindow.fxml | 24 +++++++++++++++--- 4 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/assets/NewTabPlus.png diff --git a/src/main/java/com/rohitawate/everest/controllers/HomeWindowController.java b/src/main/java/com/rohitawate/everest/controllers/HomeWindowController.java index 46ee7e5..135c7b1 100644 --- a/src/main/java/com/rohitawate/everest/controllers/HomeWindowController.java +++ b/src/main/java/com/rohitawate/everest/controllers/HomeWindowController.java @@ -147,6 +147,7 @@ public class HomeWindowController implements Initializable { dashboard.setState(newState); } + @FXML private void addTab() { addTab(new ComposerState()); } diff --git a/src/main/resources/assets/NewTabPlus.png b/src/main/resources/assets/NewTabPlus.png new file mode 100644 index 0000000000000000000000000000000000000000..1548a91b006d9f0c69ef9606a32028e1a13b0402 GIT binary patch literal 582 zcmV-M0=fN(P)?!ir4QlA}Z5wW=Iyt#yY^f~iH-OwmGgPvD!R-rr43PZW2XanET`JqL$H+DyFBt$D zdrGuT9Cy)FS1OOy2LRAm#W8(QDv#L*t)$m}BimUy3YXHBgKk+CF Uy8r+H07*qoM6N<$f|u6xxBvhE literal 0 HcmV?d00001 diff --git a/src/main/resources/css/Adreana.css b/src/main/resources/css/Adreana.css index fcaa51e..a43e5ac 100644 --- a/src/main/resources/css/Adreana.css +++ b/src/main/resources/css/Adreana.css @@ -142,6 +142,14 @@ -fx-faint-focus-color: transparent; } +#newTabButton { + -fx-background-color: #6a6a6a; +} + +#newTabButton:hover { + -fx-background-color: limegreen; +} + .tab-pane:top .tab-header-area .headers-region .tab:top { -fx-background-color: #6a6a6a; } @@ -151,6 +159,10 @@ -fx-fill: white; } +.tab:selected .tab-close-button:hover { + -fx-background-color: #282828; +} + /* Request options (Headers, Authorization, etc) tab */ #requestOptionsTab .tab-header-area .headers-region .tab:hover:top { -fx-background-color: #55a15c; diff --git a/src/main/resources/fxml/homewindow/HomeWindow.fxml b/src/main/resources/fxml/homewindow/HomeWindow.fxml index d6456c4..5b3fc4d 100644 --- a/src/main/resources/fxml/homewindow/HomeWindow.fxml +++ b/src/main/resources/fxml/homewindow/HomeWindow.fxml @@ -16,8 +16,11 @@ ~ limitations under the License. --> + + + @@ -26,9 +29,24 @@ - + + + + + + + + + + + + + +