Commit ac966ce2 authored by Janita Lillevik Røyseth's avatar Janita Lillevik Røyseth
Browse files

Added icons for the functions to move tasks in the list.

parent f6bd4c15
Pipeline #132371 failed with stages
in 52 seconds
......@@ -587,7 +587,7 @@ public class CarePlanController {
Image changeImage = new Image(getClass().getClassLoader().getResource("Icons/edit.png").toExternalForm());
ImageView changeIcon = new ImageView(changeImage);
changeIcon.setPreserveRatio(true);
changeIcon.setFitWidth(19);
changeIcon.setFitWidth(20);
changeTask.setGraphic(changeIcon);
changeTask.setOnAction(e -> {
Tab tabSelected = this.careplanTabPane.getSelectionModel().getSelectedItem();
......@@ -637,7 +637,12 @@ public class CarePlanController {
}
});
Button moveTaskUp = new Button("Opp");
Button moveTaskUp = new Button();
Image moveTaskUpImage = new Image(getClass().getClassLoader().getResource("Icons/up.png").toExternalForm());
ImageView moveTaskUpIcon = new ImageView(moveTaskUpImage);
moveTaskUpIcon.setPreserveRatio(true);
moveTaskUpIcon.setFitWidth(20);
moveTaskUp.setGraphic(moveTaskUpIcon);
moveTaskUp.setOnAction(e -> {
Tab tabSelected = this.careplanTabPane.getSelectionModel().getSelectedItem();
CheckBox checkBox = (CheckBox) listView.getSelectionModel().getSelectedItem();
......@@ -660,7 +665,12 @@ public class CarePlanController {
}
});
Button moveTaskDown = new Button("Ned");
Button moveTaskDown = new Button();
Image moveTaskDownImage = new Image(getClass().getClassLoader().getResource("Icons/down.png").toExternalForm());
ImageView moveTaskDownIcon = new ImageView(moveTaskDownImage);
moveTaskDownIcon.setPreserveRatio(true);
moveTaskDownIcon.setFitWidth(20);
moveTaskDown.setGraphic(moveTaskDownIcon);
moveTaskDown.setOnAction(e -> {
Tab tabSelected = this.careplanTabPane.getSelectionModel().getSelectedItem();
CheckBox checkBox = (CheckBox) listView.getSelectionModel().getSelectedItem();
......@@ -683,7 +693,12 @@ public class CarePlanController {
}
});
Button moveTaskToBottom = new Button("Nederst");
Button moveTaskToBottom = new Button();
Image moveTaskToBottomImage = new Image(getClass().getClassLoader().getResource("Icons/bottom.png").toExternalForm());
ImageView moveTaskToBottomIcon = new ImageView(moveTaskToBottomImage);
moveTaskToBottomIcon.setPreserveRatio(true);
moveTaskToBottomIcon.setFitWidth(20);
moveTaskToBottom.setGraphic(moveTaskToBottomIcon);
moveTaskToBottom.setOnAction(e -> {
Tab tabSelected = this.careplanTabPane.getSelectionModel().getSelectedItem();
CheckBox checkBox = (CheckBox) listView.getSelectionModel().getSelectedItem();
......@@ -706,7 +721,12 @@ public class CarePlanController {
}
});
Button moveTaskToTop = new Button("Øverst");
Button moveTaskToTop = new Button();
Image moveTaskToTopImage = new Image(getClass().getClassLoader().getResource("Icons/top.png").toExternalForm());
ImageView moveTaskToTopIcon = new ImageView(moveTaskToTopImage);
moveTaskToTopIcon.setPreserveRatio(true);
moveTaskToTopIcon.setFitWidth(20);
moveTaskToTop.setGraphic(moveTaskToTopIcon);
moveTaskToTop.setOnAction(e -> {
Tab tabSelected = this.careplanTabPane.getSelectionModel().getSelectedItem();
CheckBox checkBox = (CheckBox) listView.getSelectionModel().getSelectedItem();
......
src/main/resources/Icons/add.png

3.81 KB | W: | H:

src/main/resources/Icons/add.png

6.68 KB | W: | H:

src/main/resources/Icons/add.png
src/main/resources/Icons/add.png
src/main/resources/Icons/add.png
src/main/resources/Icons/add.png
  • 2-up
  • Swipe
  • Onion skin
src/main/resources/Icons/edit.png

5.32 KB | W: | H:

src/main/resources/Icons/edit.png

7.65 KB | W: | H:

src/main/resources/Icons/edit.png
src/main/resources/Icons/edit.png
src/main/resources/Icons/edit.png
src/main/resources/Icons/edit.png
  • 2-up
  • Swipe
  • Onion skin
src/main/resources/Icons/remove.png

2.73 KB | W: | H:

src/main/resources/Icons/remove.png

5.74 KB | W: | H:

src/main/resources/Icons/remove.png
src/main/resources/Icons/remove.png
src/main/resources/Icons/remove.png
src/main/resources/Icons/remove.png
  • 2-up
  • Swipe
  • Onion skin
Supports Markdown
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