Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark theme icons added. Modified code to switch between themes #2

Merged
merged 2 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ Quelea/nbproject/*
Quelea/.idea/*
Quelea/.gradle/*
Quelea/.nb-gradle/*

Quelea/.settings/*
Quelea/bin/*
Quelea/.classpath
Quelea/.project
Thumbs.db
Binary file removed Quelea/icons/SMPTE Bars.png
Binary file not shown.
Binary file removed Quelea/icons/about.png
Binary file not shown.
Binary file removed Quelea/icons/add audio.png
Binary file not shown.
Binary file removed Quelea/icons/add-light.png
Binary file not shown.
Binary file removed Quelea/icons/add.png
Binary file not shown.
Binary file removed Quelea/icons/add_item-light.png
Binary file not shown.
Binary file removed Quelea/icons/add_item.png
Binary file not shown.
Binary file removed Quelea/icons/add_pdf-light.png
Binary file not shown.
Binary file removed Quelea/icons/add_pdf.png
Binary file not shown.
Binary file removed Quelea/icons/add_pdfbig-light.png
Binary file not shown.
Binary file removed Quelea/icons/add_pdfbig.png
Binary file not shown.
Binary file removed Quelea/icons/audio preview.png
Binary file not shown.
Binary file removed Quelea/icons/audio.png
Binary file not shown.
Binary file removed Quelea/icons/audio30.png
Binary file not shown.
Binary file removed Quelea/icons/bible-light.png
Binary file not shown.
Binary file removed Quelea/icons/bible.png
Binary file not shown.
Binary file removed Quelea/icons/bridge-light.png
Binary file not shown.
Binary file removed Quelea/icons/bridge.png
Binary file not shown.
Binary file removed Quelea/icons/chorus-light.png
Binary file not shown.
Binary file removed Quelea/icons/chorus.png
Binary file not shown.
Binary file removed Quelea/icons/clearaudio.png
Binary file not shown.
Binary file removed Quelea/icons/colorbands.png
Binary file not shown.
Binary file removed Quelea/icons/cross-light.png
Binary file not shown.
Binary file removed Quelea/icons/cross.png
Binary file not shown.
Binary file removed Quelea/icons/delete.png
Binary file not shown.
Binary file removed Quelea/icons/dictionary.png
Diff not rendered.
Binary file removed Quelea/icons/discuss.png
Diff not rendered.
Binary file removed Quelea/icons/down-light.png
Diff not rendered.
Binary file removed Quelea/icons/down.png
Diff not rendered.
Binary file removed Quelea/icons/dvd-light.png
Diff not rendered.
Binary file removed Quelea/icons/dvd.png
Diff not rendered.
Binary file removed Quelea/icons/easyslides.png
Diff not rendered.
Binary file removed Quelea/icons/easyworship.png
Diff not rendered.
Binary file removed Quelea/icons/edit.png
Diff not rendered.
Binary file removed Quelea/icons/edit32.png
Diff not rendered.
Binary file removed Quelea/icons/elevanto.png
Diff not rendered.
Binary file removed Quelea/icons/epicworship.png
Diff not rendered.
Binary file removed Quelea/icons/exit.png
Diff not rendered.
Binary file removed Quelea/icons/export.png
Diff not rendered.
Binary file removed Quelea/icons/facebook.png
Diff not rendered.
Binary file removed Quelea/icons/fileexport.png
Diff not rendered.
Binary file removed Quelea/icons/filenew-light.png
Diff not rendered.
Binary file removed Quelea/icons/filenew.png
Diff not rendered.
Binary file removed Quelea/icons/filenewbig-light.png
Diff not rendered.
Binary file removed Quelea/icons/filenewbig.png
Diff not rendered.
Binary file removed Quelea/icons/fileopen-light.png
Diff not rendered.
Binary file removed Quelea/icons/fileopen.png
Diff not rendered.
Binary file removed Quelea/icons/fileopenbig-light.png
Diff not rendered.
Binary file removed Quelea/icons/fileopenbig.png
Diff not rendered.
Binary file removed Quelea/icons/fileprint-light.png
Diff not rendered.
Binary file removed Quelea/icons/fileprint.png
Diff not rendered.
Binary file removed Quelea/icons/fileprintbig-light.png
Diff not rendered.
Binary file removed Quelea/icons/fileprintbig.png
Diff not rendered.
Binary file removed Quelea/icons/filesave-light.png
Diff not rendered.
Binary file removed Quelea/icons/filesave.png
Diff not rendered.
Binary file removed Quelea/icons/filesaveas-light.png
Diff not rendered.
Binary file removed Quelea/icons/filesaveas.png
Diff not rendered.
Binary file removed Quelea/icons/filesavebig-light.png
Diff not rendered.
Binary file removed Quelea/icons/filesavebig.png
Diff not rendered.
Binary file removed Quelea/icons/freeworship.png
Diff not rendered.
Binary file removed Quelea/icons/full logo.png
Diff not rendered.
Binary file removed Quelea/icons/gear.png
Diff not rendered.
Binary file added Quelea/icons/ic-add-large-light.png
Binary file modified Quelea/icons/ic-add-light.png
Binary file added Quelea/icons/ic-add-pdf-light.png
Binary file modified Quelea/icons/ic-bible-light.png
Binary file modified Quelea/icons/ic-bible-open-light.png
Binary file modified Quelea/icons/ic-cancel-light.png
Binary file added Quelea/icons/ic-discuss-light.png
Binary file modified Quelea/icons/ic-down-light.png
Binary file modified Quelea/icons/ic-dvd-light.png
Binary file added Quelea/icons/ic-edit-light.png
Binary file modified Quelea/icons/ic-exit-light.png
Binary file added Quelea/icons/ic-export-light.png
Binary file modified Quelea/icons/ic-export.png
Binary file modified Quelea/icons/ic-folder-light.png
Binary file modified Quelea/icons/ic-foler-large-light.png
Binary file removed Quelea/icons/ic-foler-large.png
Diff not rendered.
Binary file modified Quelea/icons/ic-golive-light.png
Binary file modified Quelea/icons/ic-image-light.png
Binary file removed Quelea/icons/ic-import-gray.png
Diff not rendered.
Binary file added Quelea/icons/ic-import-light.png
Binary file modified Quelea/icons/ic-import.png
Binary file added Quelea/icons/ic-list-light.png
Binary file modified Quelea/icons/ic-livetext-light.png
Binary file added Quelea/icons/ic-manual-light.png
Binary file modified Quelea/icons/ic-newfile-large-light.png
Binary file modified Quelea/icons/ic-newfile-light.png
Binary file modified Quelea/icons/ic-newsong-large-light.png
Binary file modified Quelea/icons/ic-newsong-light.png
Binary file added Quelea/icons/ic-notice-large-light.png
Binary file added Quelea/icons/ic-options-light.png
Binary file modified Quelea/icons/ic-pdf-large-light.png
Binary file added Quelea/icons/ic-pdf-light.png
Binary file modified Quelea/icons/ic-powerpoint-light.png
Binary file added Quelea/icons/ic-preview-light.png
Binary file modified Quelea/icons/ic-print-large-light.png
Binary file modified Quelea/icons/ic-print-light.png
Binary file modified Quelea/icons/ic-save-large-light.png
Binary file modified Quelea/icons/ic-save-light.png
Binary file modified Quelea/icons/ic-saveas-light.png
Binary file added Quelea/icons/ic-sch-audio-light.png
Binary file added Quelea/icons/ic-sch-dvd-light.png
Binary file added Quelea/icons/ic-sch-image-light.png
Binary file added Quelea/icons/ic-sch-lyrics-light.png
Binary file added Quelea/icons/ic-sch-lyricschord-light.png
Binary file added Quelea/icons/ic-sch-lyricscopy-light.png
Binary file added Quelea/icons/ic-sch-presentation-light.png
Binary file added Quelea/icons/ic-sch-timer-light.png
Binary file added Quelea/icons/ic-sch-video-light.png
Binary file added Quelea/icons/ic-sch-web-light.png
Binary file added Quelea/icons/ic-theme-light.png
Binary file modified Quelea/icons/ic-timer-light.png
Binary file modified Quelea/icons/ic-up-light.png
Binary file added Quelea/icons/ic-update-light.png
Binary file modified Quelea/icons/ic-video-light.png
Binary file modified Quelea/icons/ic-web-light.png
Binary file removed Quelea/icons/image-group-schedule.png
Diff not rendered.
Binary file removed Quelea/icons/image-light.png
Diff not rendered.
Binary file removed Quelea/icons/image.png
Diff not rendered.
Binary file removed Quelea/icons/import.png
Diff not rendered.
Binary file removed Quelea/icons/importbw.png
Diff not rendered.
Binary file removed Quelea/icons/info-light.png
Diff not rendered.
Binary file removed Quelea/icons/info.png
Diff not rendered.
Binary file removed Quelea/icons/infobig-light.png
Diff not rendered.
Binary file removed Quelea/icons/infobig.png
Diff not rendered.
Binary file removed Quelea/icons/left.png
Diff not rendered.
Binary file removed Quelea/icons/lightning-light.png
Diff not rendered.
Binary file removed Quelea/icons/lightning.png
Diff not rendered.
Binary file removed Quelea/icons/lightningbig-light.png
Diff not rendered.
Binary file removed Quelea/icons/lightningbig.png
Diff not rendered.
Binary file removed Quelea/icons/list.png
Diff not rendered.
Binary file removed Quelea/icons/live_text-light.png
Diff not rendered.
Binary file removed Quelea/icons/live_text.png
Diff not rendered.
Binary file removed Quelea/icons/logo default.png
Diff not rendered.
Binary file removed Quelea/icons/loop_off.png
Diff not rendered.
Binary file removed Quelea/icons/loop_on.png
Diff not rendered.
Binary file removed Quelea/icons/lyrics.png
Diff not rendered.
Binary file removed Quelea/icons/lyricsandchords.png
Diff not rendered.
Binary file removed Quelea/icons/lyricscopy.png
Diff not rendered.
Binary file removed Quelea/icons/mediashout.png
Diff not rendered.
Binary file removed Quelea/icons/missionpraise.png
Diff not rendered.
Binary file removed Quelea/icons/monitor.png
Diff not rendered.
Binary file removed Quelea/icons/multimedia-light.png
Diff not rendered.
Binary file removed Quelea/icons/multimedia.png
Diff not rendered.
Binary file removed Quelea/icons/multimedia_big.png
Diff not rendered.
Binary file removed Quelea/icons/newsong-light.png
Diff not rendered.
Binary file removed Quelea/icons/newsong.png
Diff not rendered.
Binary file removed Quelea/icons/newsongbig-light.png
Diff not rendered.
Binary file removed Quelea/icons/newsongbig.png
Diff not rendered.
Binary file removed Quelea/icons/newsongdb-light.png
Diff not rendered.
Binary file removed Quelea/icons/newsongdb.png
Diff not rendered.
Binary file removed Quelea/icons/newstar.png
Diff not rendered.
Binary file removed Quelea/icons/next-light.png
Diff not rendered.
Binary file removed Quelea/icons/next.png
Diff not rendered.
Binary file removed Quelea/icons/nonbreakline.png
Diff not rendered.
Binary file added Quelea/icons/old-icons.zip
Binary file not shown.
Binary file removed Quelea/icons/openlp.png
Diff not rendered.
Binary file removed Quelea/icons/opensong.png
Diff not rendered.
Binary file removed Quelea/icons/options.png
Diff not rendered.
Binary file removed Quelea/icons/pause.png
Diff not rendered.
Binary file removed Quelea/icons/pausedisable.png
Diff not rendered.
Binary file removed Quelea/icons/pdf-light.png
Diff not rendered.
Binary file removed Quelea/icons/pdf.png
Diff not rendered.
Binary file removed Quelea/icons/planningcenteronline.png
Diff not rendered.
Binary file removed Quelea/icons/play.png
Diff not rendered.
Binary file removed Quelea/icons/playdisable.png
Diff not rendered.
Binary file removed Quelea/icons/pm.png
Diff not rendered.
Binary file removed Quelea/icons/position calibrate.png
Diff not rendered.
Binary file removed Quelea/icons/powerpoint-light.png
Diff not rendered.
Binary file removed Quelea/icons/powerpoint.png
Diff not rendered.
Binary file removed Quelea/icons/powerpointbig.png
Diff not rendered.
Binary file removed Quelea/icons/pre_chorus-light.png
Diff not rendered.
Binary file removed Quelea/icons/pre_chorus.png
Diff not rendered.
Binary file removed Quelea/icons/prev.png
Diff not rendered.
Binary file removed Quelea/icons/previous-light.png
Diff not rendered.
Binary file removed Quelea/icons/previous.png
Diff not rendered.
Binary file removed Quelea/icons/projector.png
Diff not rendered.
Binary file removed Quelea/icons/propresenter.png
Diff not rendered.
Binary file removed Quelea/icons/record-light.png
Diff not rendered.
Binary file removed Quelea/icons/record.png
Diff not rendered.
Binary file removed Quelea/icons/record_stop.png
Diff not rendered.
Binary file removed Quelea/icons/removedb-light.png
Diff not rendered.
Binary file removed Quelea/icons/removedb.png
Diff not rendered.
Binary file removed Quelea/icons/right.png
Diff not rendered.
Binary file removed Quelea/icons/settings.png
Diff not rendered.
Binary file removed Quelea/icons/sm.png
Diff not rendered.
Binary file removed Quelea/icons/sof.png
Diff not rendered.
Binary file removed Quelea/icons/songbeamer.png
Diff not rendered.
Binary file removed Quelea/icons/songpro.png
Diff not rendered.
Binary file removed Quelea/icons/square wedges.png
Diff not rendered.
Binary file removed Quelea/icons/stage.png
Diff not rendered.
Binary file removed Quelea/icons/stop.png
Diff not rendered.
Binary file removed Quelea/icons/stopdisable.png
Diff not rendered.
Binary file removed Quelea/icons/sundayplus.png
Diff not rendered.
Binary file removed Quelea/icons/tag_coda-light.png
Diff not rendered.
Binary file removed Quelea/icons/tag_coda.png
Diff not rendered.
Binary file removed Quelea/icons/testbars.png
Diff not rendered.
Binary file removed Quelea/icons/text.png
Diff not rendered.
Binary file removed Quelea/icons/theme.png
Diff not rendered.
Binary file removed Quelea/icons/tick.png
Diff not rendered.
Binary file removed Quelea/icons/timer-dark-light.png
Diff not rendered.
Binary file removed Quelea/icons/timer-dark.png
Diff not rendered.
Binary file removed Quelea/icons/timer-small-light.png
Diff not rendered.
Binary file removed Quelea/icons/timer-small.png
Diff not rendered.
Binary file removed Quelea/icons/timer.png
Diff not rendered.
Binary file removed Quelea/icons/translate.png
Diff not rendered.
Binary file removed Quelea/icons/translate_on.png
Diff not rendered.
Binary file removed Quelea/icons/transpose.png
Diff not rendered.
Binary file removed Quelea/icons/up-light.png
Diff not rendered.
Binary file removed Quelea/icons/up.png
Diff not rendered.
Binary file removed Quelea/icons/update.png
Diff not rendered.
Binary file removed Quelea/icons/verse-light.png
Diff not rendered.
Binary file removed Quelea/icons/verse.png
Diff not rendered.
Binary file removed Quelea/icons/vid preview.png
Diff not rendered.
Binary file removed Quelea/icons/video file big.png
Diff not rendered.
Binary file removed Quelea/icons/video file-light.png
Diff not rendered.
Binary file removed Quelea/icons/video file.png
Diff not rendered.
Binary file removed Quelea/icons/video.png
Diff not rendered.
Binary file removed Quelea/icons/web preview.png
Diff not rendered.
Binary file removed Quelea/icons/web-light.png
Diff not rendered.
Binary file removed Quelea/icons/web-schedule.png
Diff not rendered.
Binary file removed Quelea/icons/web-small-light.png
Diff not rendered.
Binary file removed Quelea/icons/web-small.png
Diff not rendered.
Binary file removed Quelea/icons/web.png
Diff not rendered.
Binary file removed Quelea/icons/website.png
Diff not rendered.
Binary file removed Quelea/icons/whitearrow.png
Diff not rendered.
Binary file removed Quelea/icons/wiki.png
Diff not rendered.
Binary file removed Quelea/icons/worshiphim.png
Diff not rendered.
Binary file removed Quelea/icons/zionworx.png
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public ImportDialog(String[] dialogLabels, ExtensionFilter fileFilter,
files = new ArrayList<>();
halt = false;
importedDialog = new SelectImportedSongsDialog();
importButton = new Button(LabelGrabber.INSTANCE.getLabel("import.button"), new ImageView(new Image("file:icons/ic-import.png", 16, 16, true, false)));
importButton = new Button(LabelGrabber.INSTANCE.getLabel("import.button"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-import-light.png" : "file:icons/ic-import.png", 16, 16, true, false)));

VBox mainPane = new VBox();
final FileChooser locationChooser = new FileChooser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.quelea.data.displayable.SongDisplayable;
import org.quelea.services.languages.LabelGrabber;
import org.quelea.services.print.Printer;
import org.quelea.services.utils.QueleaProperties;
import org.quelea.windows.main.QueleaApp;
import org.quelea.windows.main.actionhandlers.AddSongActionHandler;
import org.quelea.windows.main.actionhandlers.EditSongDBActionHandler;
Expand Down Expand Up @@ -58,15 +59,15 @@ public LibraryPopupMenu() {
addToSchedule.setOnAction(new AddSongActionHandler(true));
copyToSchedule = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.copy.to.schedule.text"), new ImageView(new Image("file:icons/ic-copy.png", 16, 16, false, true)));
copyToSchedule.setOnAction(new AddSongActionHandler(false));
preview = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.preview.song.text"), new ImageView(new Image("file:icons/ic-preview.png", 16, 16, false, true)));
preview = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.preview.song.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-preview-light.png" :"file:icons/ic-preview.png", 16, 16, false, true)));
preview.setOnAction(new PreviewSongActionHandler());
editDB = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.edit.song.text"), new ImageView(new Image("file:icons/ic-edit.png", 16, 16, false, true)));
editDB = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.edit.song.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-edit-light.png" :"file:icons/ic-edit.png", 16, 16, false, true)));
editDB.setOnAction(new EditSongDBActionHandler());
removeFromDB = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.remove.song.text"), new ImageView(new Image("file:icons/ic-delete-gray.png", 16, 16, false, true)));
removeFromDB.setOnAction(new RemoveSongDBActionHandler());
exportToPDF = new MenuItem(LabelGrabber.INSTANCE.getLabel("export.pdf.button"), new ImageView(new Image("file:icons/ic-pdf.png", 16, 16, false, true)));
exportToPDF.setOnAction(new ExportPDFSongActionHandler());
print = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.print.song.text"), new ImageView(new Image("file:icons/ic-print.png", 16, 16, false, true)));
print = new MenuItem(LabelGrabber.INSTANCE.getLabel("library.print.song.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-print-light.png" :"file:icons/ic-print.png", 16, 16, false, true)));
print.setOnAction(new EventHandler<ActionEvent>() {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.quelea.data.ThemeDTO;
import org.quelea.services.languages.LabelGrabber;
import org.quelea.services.utils.LoggerUtils;
import org.quelea.services.utils.QueleaProperties;
import org.quelea.windows.lyrics.LyricDrawer;
import org.quelea.windows.main.DisplayCanvas.Priority;
import org.quelea.windows.main.schedule.ScheduleThemeNode;
Expand Down Expand Up @@ -105,7 +106,7 @@ public void updateCallback() {
songSelectButton = new RadioButton(LabelGrabber.INSTANCE.getLabel("song.default.theme.label"));
bibleSelectButton = new RadioButton(LabelGrabber.INSTANCE.getLabel("bible.default.theme.label"));
if (theme != ThemeDTO.DEFAULT_THEME) {
editButton = new Button("", new ImageView(new Image("file:icons/ic-edit.png", 16, 16, false, true)));
editButton = new Button("", new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-edit-light.png" : "file:icons/ic-edit.png", 16, 16, false, true)));
editButton.setTooltip(new Tooltip(LabelGrabber.INSTANCE.getLabel("edit.theme.tooltip")));
editButton.setOnAction(new EventHandler<javafx.event.ActionEvent>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.quelea.services.importexport.SongListExporter;
import org.quelea.services.languages.LabelGrabber;
import org.quelea.services.utils.FileFilters;
import org.quelea.services.utils.QueleaProperties;
import org.quelea.windows.main.QueleaApp;

/**
Expand All @@ -58,7 +59,7 @@ public class ExportMenu extends Menu {
* Create the export menu.
*/
public ExportMenu() {
super(LabelGrabber.INSTANCE.getLabel("export.heading"), new ImageView(new Image("file:icons/ic-export.png", 16, 16, false, true)));
super(LabelGrabber.INSTANCE.getLabel("export.heading"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-export-light.png" : "file:icons/ic-export.png", 16, 16, false, true)));

qspItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("qsp.button"), new ImageView(new Image("file:icons/logo16.png", 16, 16, false, true)));
qspItem.setOnAction(evt -> {
Expand Down Expand Up @@ -87,7 +88,7 @@ public ExportMenu() {
});
getItems().add(pdfItem);

listItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("song.list"), new ImageView(new Image("file:icons/ic-list.png", 16, 16, false, true)));
listItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("song.list"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-list-light.png" :"file:icons/ic-list.png", 16, 16, false, true)));
listItem.setOnAction(evt -> {
FileChooser fc = new FileChooser();
fc.getExtensionFilters().add(FileFilters.CSV);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public FileMenu() {

exportToPDFItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("export.schedule.pdf.button"));
if(!Utils.isMac()) {
exportToPDFItem.setGraphic(new ImageView(new Image("file:icons/ic-pdf.png", 20, 20, true, false)));
exportToPDFItem.setGraphic(getImage("file:icons/ic-pdf.png"));
}
exportToPDFItem.setOnAction(new ExportPDFScheduleActionHandler());
getItems().add(exportToPDFItem);
Expand All @@ -106,7 +106,7 @@ public FileMenu() {

exitItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("exit.button"));
if(!Utils.isMac()) {
exitItem.setGraphic(new ImageView(new Image("file:icons/ic-exit.png", 20, 20, true, false)));
exitItem.setGraphic(getImage("file:icons/ic-exit.png"));
}
exitItem.setOnAction(new ExitActionHandler());
getItems().add(exitItem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public HelpMenu() {
launchPage(QueleaProperties.get().getFacebookPageLocation());
});
getItems().add(queleaFacebook);
queleaDiscuss = new MenuItem(LabelGrabber.INSTANCE.getLabel("help.menu.discussion"), new ImageView(new Image("file:icons/ic-discuss.png", 16, 16, false, true)));
queleaDiscuss = new MenuItem(LabelGrabber.INSTANCE.getLabel("help.menu.discussion"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ?"file:icons/ic-discuss-light.png":"file:icons/ic-discuss.png", 16, 16, false, true)));
queleaDiscuss.setOnAction(t -> {
launchPage(QueleaProperties.get().getDiscussLocation());
});
getItems().add(queleaDiscuss);
queleaWiki = new MenuItem(LabelGrabber.INSTANCE.getLabel("help.menu.wiki"), new ImageView(new Image("file:icons/ic-manual.png", 16, 16, false, true)));
queleaWiki = new MenuItem(LabelGrabber.INSTANCE.getLabel("help.menu.wiki"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ?"file:icons/ic-manual-light.png":"file:icons/ic-manual.png", 16, 16, false, true)));
queleaWiki.setOnAction(t -> {
launchPage(QueleaProperties.get().getWikiPageLocation());
});
Expand All @@ -79,7 +79,7 @@ public HelpMenu() {
queleaFacebook = null;
queleaWiki = null;
}
updateCheck = new MenuItem(LabelGrabber.INSTANCE.getLabel("help.menu.update"), new ImageView(new Image("file:icons/ic-update.png", 16, 16, false, true)));
updateCheck = new MenuItem(LabelGrabber.INSTANCE.getLabel("help.menu.update"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ?"file:icons/ic-update-light.png":"file:icons/ic-update.png", 16, 16, false, true)));
updateCheck.setOnAction(t -> {
new UpdateChecker().checkUpdate(true, true, true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import org.quelea.services.importexport.ScreenMonkeyImportDialog;
import org.quelea.services.importexport.WorshipHimImportDialog;
import org.quelea.services.languages.LabelGrabber;
import org.quelea.services.utils.QueleaProperties;
import org.quelea.services.utils.Utils;

/**
Expand Down Expand Up @@ -118,7 +119,7 @@ public class ImportMenu extends Menu {
* Create the import menu.
*/
public ImportMenu() {
super(LabelGrabber.INSTANCE.getLabel("import.heading"), new ImageView(new Image("file:icons/ic-import.png", 16, 16, false, true)));
super(LabelGrabber.INSTANCE.getLabel("import.heading"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-import-light.png" : "file:icons/ic-import.png", 16, 16, false, true)));

qspImportDialog = new QSPImportDialog();
openSongImportDialog = new OpenSongImportDialog();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void handle(ActionEvent t) {
}
getItems().add(liveTextItem);

optionsItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("options.button"), new ImageView(new Image("file:icons/ic-options.png", 20, 20, false, true)));
optionsItem = new MenuItem(LabelGrabber.INSTANCE.getLabel("options.button"), new ImageView(new Image(darkTheme ? "file:icons/ic-options-light.png" : "file:icons/ic-options.png", 20, 20, false, true)));
optionsItem.setAccelerator(new KeyCodeCombination(KeyCode.T, KeyCombination.SHORTCUT_DOWN));
optionsItem.setOnAction(new ShowOptionsActionHandler());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.quelea.data.displayable.Displayable;
import org.quelea.data.displayable.TextDisplayable;
import org.quelea.data.displayable.TimerDisplayable;
import org.quelea.services.utils.QueleaProperties;
import org.quelea.services.utils.Utils;
import org.quelea.windows.main.actionhandlers.EditThemeScheduleActionHandler;
import org.quelea.windows.main.actionhandlers.EditTimerThemeActionHandler;
Expand All @@ -47,7 +48,7 @@ public ScheduleListNode(Displayable displayable) {
super(10);
setAlignment(Pos.CENTER_LEFT);
ImageView icon = displayable.getPreviewIcon();
liveIcon = new ImageView(new Image("file:icons/ic-livedot.png"));
liveIcon = new ImageView(new Image("file:icons/ic-livedot.png",16,16,false,true));
liveIcon.setFitHeight(10);
liveIcon.setFitWidth(10);
liveIcon.setVisible(false);
Expand All @@ -56,7 +57,7 @@ public ScheduleListNode(Displayable displayable) {
getChildren().add(liveIcon);

if (displayable instanceof TextDisplayable || displayable instanceof TimerDisplayable) {
themeButton = new Button("", new ImageView(new Image("file:icons/ic-theme-small.png", 16, 16, false, true)));
themeButton = new Button("", new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-theme-light.png" :"file:icons/ic-theme.png", 16, 16, false, true)));
if (displayable instanceof TextDisplayable) {
themeButton.setOnAction(new EditThemeScheduleActionHandler((TextDisplayable) displayable));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class SchedulePanel extends BorderPane {
*/
public SchedulePanel() {
boolean darkTheme = QueleaProperties.get().getUseDarkTheme();
ImageView themeButtonIcon = new ImageView(new Image("file:icons/ic-theme.png"));
ImageView themeButtonIcon = new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-theme-light.png" : "file:icons/ic-theme.png"));
themeButtonIcon.setFitWidth(16);
themeButtonIcon.setFitHeight(16);
themeButton = new Button("", themeButtonIcon);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.quelea.data.displayable.SongDisplayable;
import org.quelea.data.displayable.TimerDisplayable;
import org.quelea.services.languages.LabelGrabber;
import org.quelea.services.utils.QueleaProperties;
import org.quelea.windows.main.QueleaApp;
import org.quelea.windows.main.actionhandlers.EditSongScheduleActionHandler;
import org.quelea.windows.main.actionhandlers.EditThemeScheduleActionHandler;
Expand All @@ -43,12 +44,12 @@
*/
public class SchedulePopupMenu extends ContextMenu {

private final MenuItem editSong = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.song.text"), new ImageView(new Image("file:icons/ic-edit.png", 16, 16, false, true)));
private final MenuItem editTheme = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.theme.text"), new ImageView(new Image("file:icons/ic-edit.png", 16, 16, false, true)));
private final MenuItem editSong = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.song.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-edit-light.png" : "file:icons/ic-edit.png", 16, 16, false, true)));
private final MenuItem editTheme = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.theme.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-edit-light.png" :"file:icons/ic-edit.png", 16, 16, false, true)));
private final MenuItem changeBibleVersion = new MenuItem(LabelGrabber.INSTANCE.getLabel("change.bible.version.text"), new ImageView(new Image("file:icons/ic-bible.png", 16, 16, false, true)));
private final MenuItem translationChoice = new MenuItem(LabelGrabber.INSTANCE.getLabel("choose.translations.text"), new ImageView(new Image("file:icons/ic-translate.png", 16, 16, false, true)));
private final MenuItem editTimer = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.timer.text"), new ImageView(new Image("file:icons/timer-dark.png", 16, 16, false, true)));
private final MenuItem editTimerTheme = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.theme.text"), new ImageView(new Image("file:icons/ic-theme-small.png", 16, 16, false, true)));
private final MenuItem editTimer = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.timer.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-timer-light.png" :"file:icons/ic-timer.png", 16, 16, false, true)));
private final MenuItem editTimerTheme = new MenuItem(LabelGrabber.INSTANCE.getLabel("edit.theme.text"), new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-theme-light.png" :"file:icons/ic-theme.png", 16, 16, false, true)));


public SchedulePopupMenu(Displayable item) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public MainToolbar() {
if (Utils.isMac()) {
dvdIV = new ImageView(new Image("file:icons/ic-sch-dvd.png",24,24,false,true));
} else {
dvdIV = new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-sch-dvd-light.png" : "file:icons/ic-sch-dvd.png", 24, 24, false, true));
dvdIV = new ImageView(new Image("file:icons/ic-sch-dvd.png", 24, 24, false, true));
}
dvdIV.setFitWidth(24);
dvdIV.setFitHeight(24);
Expand Down Expand Up @@ -344,7 +344,7 @@ private ToggleButton getToggleButtonFromImage(String uri) {
}

private Button getButtonFromImage(String uri, int width, int height, boolean preserveRatio, boolean smooth) {
ImageView iv = new ImageView(new Image(uri, width, height, preserveRatio, smooth));
ImageView iv = new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? uri.replace(".png", "-light.png") : uri, width, height, preserveRatio, smooth));
iv.setSmooth(true);
iv.setFitWidth(24);
iv.setFitHeight(24);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private Button getTitleButton(String fileName, String label, String titleName) {
* @return the sequence button
*/
private Button getSequenceButton() {
Button ret = new Button("", new ImageView(new Image("file:icons/ic-edit.png", 20, 20, false, true)));
Button ret = new Button("", new ImageView(new Image(QueleaProperties.get().getUseDarkTheme() ? "file:icons/ic-edit-light.png" :"file:icons/ic-edit.png", 20, 20, false, true)));
ret.setTooltip(new Tooltip(LabelGrabber.INSTANCE.getLabel("sequence.tooltip")));
ret.setOnAction((event) -> {
SequenceSelectionDialog sequenceSelectionDialog = new SequenceSelectionDialog();
Expand Down