Skip to content

Commit

Permalink
save button is not necessary when auto save is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogefest committed Feb 18, 2021
1 parent 971cc65 commit 0578e4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 54 deletions.
38 changes: 8 additions & 30 deletions src/main/resources/notepack/noterender/Markdown.fxml
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.web.*?>
<?import java.lang.*?>
<?import java.net.*?>
<?import javafx.geometry.*?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<?import java.net.URL?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckMenuItem?>
<?import javafx.scene.control.MenuButton?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.Tooltip?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<?import javafx.scene.web.WebView?>
<?import java.net.URL?>
<AnchorPane fx:id="tabBackground" minHeight="0.0" minWidth="0.0" prefHeight="664.0" prefWidth="1011.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="notepack.noterender.MarkdownController">
<stylesheets>
<!--<URL value="@color-definition.css" />-->
Expand All @@ -35,21 +20,14 @@
<AnchorPane id="noteToolbar" prefHeight="40.0" prefWidth="1011.0">
<children>
<HBox alignment="CENTER_LEFT" prefWidth="714.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<Button fx:id="btnSave" mnemonicParsing="false" onAction="#onSaveNote" styleClass="icon-button">
<tooltip>
<Tooltip text="Save note (Ctrl + s)" />
</tooltip>
<graphic>
<Label styleClass="icon-base,mi-content-save-outline" />
</graphic>
</Button>
<Button fx:id="btnSearch" mnemonicParsing="false" onAction="#onSearchInNote" styleClass="icon-button">
<children>
<Button fx:id="btnSearch" mnemonicParsing="false" onAction="#onSearchInNote"
styleClass="icon-button">
<tooltip>
<Tooltip text="Search (Ctrl + f)" />
<Tooltip text="Search (Ctrl + f)"/>
</tooltip>
<graphic>
<Label styleClass="icon-base,mi-magnify" />
<Label styleClass="icon-base,mi-magnify"/>
</graphic>
</Button>
<MenuButton fx:id="btnActions" mnemonicParsing="false" styleClass="icon-button">
Expand Down
30 changes: 6 additions & 24 deletions src/main/resources/notepack/noterender/Textarea.fxml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.net.URL?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckMenuItem?>
<?import javafx.scene.control.MenuButton?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.Tooltip?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.Font?>

<?import javafx.scene.control.Label?>
<?import java.net.URL?>
<AnchorPane fx:id="tabBackground" minHeight="0.0" minWidth="0.0" prefHeight="664.0" prefWidth="1011.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="notepack.noterender.TextAreaController">
<stylesheets>
<!--<URL value="@color-definition.css" />-->
Expand All @@ -29,21 +19,13 @@
<AnchorPane id="noteToolbar" prefHeight="40.0" prefWidth="1011.0">
<children>
<HBox alignment="CENTER_LEFT" prefWidth="714.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<Button mnemonicParsing="false" onAction="#onSaveNote" styleClass="icon-button">
<tooltip>
<Tooltip text="Save note (Ctrl + s)" />
</tooltip>
<graphic>
<Label styleClass="icon-base,mi-content-save-outline" />
</graphic>
</Button>
<children>
<Button mnemonicParsing="false" onAction="#onSearchInNote" styleClass="icon-button">
<tooltip>
<Tooltip text="Search (Ctrl + f)" />
<Tooltip text="Search (Ctrl + f)"/>
</tooltip>
<graphic>
<Label styleClass="icon-base,mi-magnify" />
<Label styleClass="icon-base,mi-magnify"/>
</graphic>
</Button>
<MenuButton mnemonicParsing="false" styleClass="icon-button">
Expand Down

0 comments on commit 0578e4b

Please sign in to comment.