diff --git a/nw/assets/icons/novelwriter.ico b/nw/assets/icons/novelwriter.ico index 470ebe72..df883296 100644 Binary files a/nw/assets/icons/novelwriter.ico and b/nw/assets/icons/novelwriter.ico differ diff --git a/nw/assets/icons/x-novelwriter-project.ico b/nw/assets/icons/x-novelwriter-project.ico new file mode 100644 index 00000000..b349aa30 Binary files /dev/null and b/nw/assets/icons/x-novelwriter-project.ico differ diff --git a/nw/assets/icons/x-novelwriter-project.svg b/nw/assets/icons/x-novelwriter-project.svg new file mode 100644 index 00000000..08546d15 --- /dev/null +++ b/nw/assets/icons/x-novelwriter-project.svg @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + diff --git a/nw/gui/mainmenu.py b/nw/gui/mainmenu.py index 9bf4cae1..309e99bb 100644 --- a/nw/gui/mainmenu.py +++ b/nw/gui/mainmenu.py @@ -896,6 +896,12 @@ class GuiMainMenu(QMenuBar): self.aAboutQt.triggered.connect(lambda: self.theParent.showAboutQtDialog()) self.helpMenu.addAction(self.aAboutQt) + # Document > Main Website + self.aWebsite = QAction("Main Website", self) + self.aWebsite.setStatusTip("Open the main website at %s" % nw.__url__) + self.aWebsite.triggered.connect(lambda: self._openWebsite(nw.__url__)) + self.helpMenu.addAction(self.aWebsite) + # Help > Separator self.helpMenu.addSeparator() @@ -908,7 +914,7 @@ class GuiMainMenu(QMenuBar): self.helpMenu.addAction(self.aHelpLoc) self.aHelpWeb = QAction("Documentation (Online)", self) - self.aHelpWeb.setStatusTip("View online documentation") + self.aHelpWeb.setStatusTip("View online documentation at %s" % nw.__docurl__) self.aHelpWeb.triggered.connect(lambda: self._openWebsite(nw.__docurl__)) if self.mainConf.hasHelp and self.mainConf.hasAssistant: self.aHelpWeb.setShortcut("Shift+F1") @@ -916,12 +922,6 @@ class GuiMainMenu(QMenuBar): self.aHelpWeb.setShortcuts(["F1", "Shift+F1"]) self.helpMenu.addAction(self.aHelpWeb) - # Document > Go to Website - self.aWebsite = QAction("Open the novelWriter Website", self) - self.aWebsite.setStatusTip("Open the main website at %s" % nw.__url__) - self.aWebsite.triggered.connect(lambda: self._openWebsite(nw.__url__)) - self.helpMenu.addAction(self.aWebsite) - # Document > Report Issue self.aIssue = QAction("Report an Issue (GitHub)", self) self.aIssue.setStatusTip("Report a bug or issue on GitHub at %s" % nw.__issuesurl__) diff --git a/setup/icons/novelwriter.ico b/setup/icons/novelwriter.ico index c96e8bdb..df883296 100644 Binary files a/setup/icons/novelwriter.ico and b/setup/icons/novelwriter.ico differ diff --git a/setup/icons/x-novelwriter-project.ico b/setup/icons/x-novelwriter-project.ico new file mode 100644 index 00000000..b349aa30 Binary files /dev/null and b/setup/icons/x-novelwriter-project.ico differ diff --git a/setup/win_setup.iss b/setup/win_setup.iss index 8b6be609..ba2c9990 100644 --- a/setup/win_setup.iss +++ b/setup/win_setup.iss @@ -27,11 +27,12 @@ UsedUserAreasWarning=no ;PrivilegesRequired=lowest PrivilegesRequiredOverridesAllowed=dialog OutputDir={#nwAppDir} -OutputBaseFilename=novelwriter_{#nwAppVersion}_win_amd64_setup +OutputBaseFilename=novelwriter-{#nwAppVersion}-win10-amd64-setup Compression=lzma SolidCompression=yes WizardStyle=modern ArchitecturesInstallIn64BitMode=x64 +ChangesAssociations=yes [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" @@ -50,3 +51,10 @@ Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#nwAppName}"; Fil [Run] Filename: "{app}\{#nwAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(nwAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent + +[Registry] +Root: HKA; Subkey: "Software\Classes\.nwx\OpenWithProgids"; ValueType: string; ValueName: "novelWriterProject.nwx"; ValueData: ""; Flags: uninsdeletevalue +Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx"; ValueType: string; ValueName: ""; ValueData: "novelWriter Project File"; Flags: uninsdeletekey +Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\assets\icons\x-novelwriter-project.ico" +Root: HKA; Subkey: "Software\Classes\novelWriterProject.nwx\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\novelWriter.exe"" ""%1""" +Root: HKA; Subkey: "Software\Classes\Applications\novelWriter.exe\SupportedTypes"; ValueType: string; ValueName: ".nwx"; ValueData: ""