!define PRODUCT_EXE "$INSTDIR\bin\midori.exe"
!define UNINSTALL_EXE "$INSTDIR\uninst.exe"
!define RESOURCEDIR "midori-${PRODUCT_VERSION}"
+!define ICON_THEME "Faenza"
;;;;;;;;;;;;;;;;;;;;;
; Version resource ;
File /r /x "midori" "${RESOURCEDIR}\lib\*"
SetOutPath "$INSTDIR\share"
- File /r /x "locale" /x "user" /x "Tango" "${RESOURCEDIR}\share\*"
+ File /r /x "locale" /x "user" /x "${ICON_THEME}" "${RESOURCEDIR}\share\*"
- SetOutPath "$INSTDIR\share\icons\Tango"
- File "${RESOURCEDIR}\share\icons\Tango\index.theme"
+ SetOutPath "$INSTDIR\share\icons\${ICON_THEME}"
+ File "${RESOURCEDIR}\share\icons\${ICON_THEME}\index.theme"
SetOutPath "$INSTDIR"
CreateShortCut "$INSTDIR\Midori.lnk" "${PRODUCT_EXE}"
File "${RESOURCEDIR}\share\doc\midori\faq.html"
SectionEnd
-!macro InstallTangoIconRenameSmall OPath IPath
- File "/oname=16x16\${OPath}.png" "${RESOURCEDIR}\share\icons\Tango\16x16\${IPath}.png"
- File "/oname=22x22\${OPath}.png" "${RESOURCEDIR}\share\icons\Tango\22x22\${IPath}.png"
- File "/oname=32x32\${OPath}.png" "${RESOURCEDIR}\share\icons\Tango\32x32\${IPath}.png"
+!macro InstallIconThemeRenameSmall OPath IPath
+ File "/oname=16x16\${OPath}.png" "${RESOURCEDIR}\share\icons\${ICON_THEME}\16x16\${IPath}.png"
+ File "/oname=22x22\${OPath}.png" "${RESOURCEDIR}\share\icons\${ICON_THEME}\22x22\${IPath}.png"
+ File "/oname=32x32\${OPath}.png" "${RESOURCEDIR}\share\icons\${ICON_THEME}\32x32\${IPath}.png"
!macroend
-!macro InstallTangoIconRename OPath IPath
- !insertmacro InstallTangoIconRenameSmall ${OPath} ${IPath}
- File "/oname=48x48\${OPath}.png" "${RESOURCEDIR}\share\icons\Tango\48x48\${IPath}.png"
- File "/oname=scalable\${OPath}.svg" "${RESOURCEDIR}\share\icons\Tango\scalable\${IPath}.svg"
- File /nonfatal "/oname=scalable\${OPath}.icon" "${RESOURCEDIR}\share\icons\Tango\scalable\${IPath}.icon"
+!macro InstallIconThemeRename OPath IPath
+ !insertmacro InstallIconThemeRenameSmall ${OPath} ${IPath}
+ File "/oname=48x48\${OPath}.png" "${RESOURCEDIR}\share\icons\${ICON_THEME}\48x48\${IPath}.png"
+ File "/oname=scalable\${OPath}.svg" "${RESOURCEDIR}\share\icons\${ICON_THEME}\scalable\${IPath}.svg"
+ File /nonfatal "/oname=scalable\${OPath}.icon" "${RESOURCEDIR}\share\icons\${ICON_THEME}\scalable\${IPath}.icon"
!macroend
-!macro InstallTangoIconSmall IconPath
- !insertmacro InstallTangoIconRenameSmall ${IconPath} ${IconPath}
+!macro InstallIconThemeSmall IconPath
+ !insertmacro InstallIconThemeRenameSmall ${IconPath} ${IconPath}
!macroend
-!macro InstallTangoIcon IconPath
- !insertmacro InstallTangoIconRename ${IconPath} ${IconPath}
+!macro InstallIconTheme IconPath
+ !insertmacro InstallIconThemeRename ${IconPath} ${IconPath}
!macroend
-!macro CreateTangoSectionsSmall SectionPath
- CreateDirectory "$INSTDIR\share\icons\Tango\16x16\${SectionPath}"
- CreateDirectory "$INSTDIR\share\icons\Tango\22x22\${SectionPath}"
- CreateDirectory "$INSTDIR\share\icons\Tango\32x32\${SectionPath}"
+!macro CreateIconThemeSectionsSmall SectionPath
+ CreateDirectory "$INSTDIR\share\icons\${ICON_THEME}\16x16\${SectionPath}"
+ CreateDirectory "$INSTDIR\share\icons\${ICON_THEME}\22x22\${SectionPath}"
+ CreateDirectory "$INSTDIR\share\icons\${ICON_THEME}\32x32\${SectionPath}"
!macroend
-!macro CreateTangoSections SectionPath
- !insertmacro CreateTangoSectionsSmall ${SectionPath}
- CreateDirectory "$INSTDIR\share\icons\Tango\48x48\${SectionPath}"
- CreateDirectory "$INSTDIR\share\icons\Tango\scalable\${SectionPath}"
+!macro CreateIconThemeSections SectionPath
+ !insertmacro CreateIconThemeSectionsSmall ${SectionPath}
+ CreateDirectory "$INSTDIR\share\icons\${ICON_THEME}\48x48\${SectionPath}"
+ CreateDirectory "$INSTDIR\share\icons\${ICON_THEME}\scalable\${SectionPath}"
!macroend
-Section "Tango icons" SEC07
+Section "${ICON_THEME} icons" SEC07
SectionIn 1
- SetOutPath "$INSTDIR\share\icons\Tango"
-
- !insertmacro CreateTangoSections "actions"
- !insertmacro CreateTangoSectionsSmall "animations"
- !insertmacro CreateTangoSections "apps"
- !insertmacro CreateTangoSections "categories"
- !insertmacro CreateTangoSections "devices"
- !insertmacro CreateTangoSections "emblems"
- !insertmacro CreateTangoSections "emotes"
- !insertmacro CreateTangoSections "mimetypes"
- !insertmacro CreateTangoSections "places"
- !insertmacro CreateTangoSections "status"
-
- !insertmacro InstallTangoIcon "actions\gtk-add"
- !insertmacro InstallTangoIcon "actions\gtk-bold"
- !insertmacro InstallTangoIcon "actions\gtk-cancel"
- !insertmacro InstallTangoIcon "actions\gtk-cancel"
- !insertmacro InstallTangoIcon "actions\gtk-clear"
- !insertmacro InstallTangoIcon "actions\gtk-copy"
- !insertmacro InstallTangoIcon "actions\gtk-cut"
- !insertmacro InstallTangoIcon "actions\gtk-delete"
- !insertmacro InstallTangoIcon "actions\gtk-find"
- !insertmacro InstallTangoIcon "actions\gtk-fullscreen"
- !insertmacro InstallTangoIcon "actions\gtk-go-back-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-go-back-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-go-down"
- !insertmacro InstallTangoIcon "actions\gtk-go-forward-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-go-forward-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-go-up"
- !insertmacro InstallTangoIcon "actions\gtk-goto-first-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-goto-first-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-goto-last-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-goto-last-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-home"
- !insertmacro InstallTangoIcon "actions\gtk-indent-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-indent-rtl"
- !insertmacro InstallTangoIcon "actions\gtk-italic"
- !insertmacro InstallTangoIcon "actions\gtk-jump-to-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-jump-to-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-media-next-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-media-next-rtl"
- !insertmacro InstallTangoIcon "actions\gtk-media-previous-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-media-previous-rtl"
- !insertmacro InstallTangoIcon "actions\gtk-open"
- !insertmacro InstallTangoIcon "actions\gtk-paste"
- !insertmacro InstallTangoIcon "actions\gtk-print"
- !insertmacro InstallTangoIcon "actions\gtk-properties"
- !insertmacro InstallTangoIcon "actions\gtk-redo-ltr"
- !insertmacro InstallTangoIcon "actions\gtk-refresh"
- !insertmacro InstallTangoIcon "actions\gtk-remove"
- !insertmacro InstallTangoIcon "actions\gtk-save"
- !insertmacro InstallTangoIcon "actions\gtk-save-as"
- !insertmacro InstallTangoIcon "actions\gtk-select-all"
- !insertmacro InstallTangoIcon "actions\gtk-stop"
- !insertmacro InstallTangoIcon "actions\gtk-underline"
- !insertmacro InstallTangoIcon "actions\gtk-undo-ltr"
- !insertmacro InstallTangoIcon "actions\stock_add-bookmark"
- !insertmacro InstallTangoIcon "actions\stock_new-tab"
- !insertmacro InstallTangoIcon "actions\stock_new-window"
- !insertmacro InstallTangoIconSmall "animations\process-working"
- !insertmacro InstallTangoIcon "apps\gnome-settings-theme"
- !insertmacro InstallTangoIcon "apps\gtk-help"
- !insertmacro InstallTangoIcon "apps\terminal"
- !insertmacro InstallTangoIcon "apps\web-browser"
- !insertmacro InstallTangoIcon "categories\gtk-preferences"
- #!insertmacro InstallTangoIcon "cookie-manager"
- #!insertmacro InstallTangoIcon "document-open-recent"
- #!insertmacro InstallTangoIcon "extention"
- #!insertmacro InstallTangoIcon "feed-panel"
- #!insertmacro InstallTangoIcon "gtk-about"
- #!insertmacro InstallTangoIcon "gtk-close"
- #!insertmacro InstallTangoIcon "gtk-convert"
- #!insertmacro InstallTangoIcon "gtk-dialog-authentication"
- #!insertmacro InstallTangoIcon "gtk-dnd-multiple"
- #!insertmacro InstallTangoIcon "gtk-edit"
- #!insertmacro InstallTangoIcon "gtk-execute"
- #!insertmacro InstallTangoIcon "gtk-file"
- #!insertmacro InstallTangoIcon "gtk-index"
- #!insertmacro InstallTangoIcon "gtk-info"
- #!insertmacro InstallTangoIcon "gtk-ok"
- #!insertmacro InstallTangoIcon "gtk-orientation-portait"
- #!insertmacro InstallTangoIcon "gtk-quit"
- #!insertmacro InstallTangoIcon "gtk-select-color"
- #!insertmacro InstallTangoIcon "gtk-select-font"
- #!insertmacro InstallTangoIcon "gtk-sort-ascending"
- #!insertmacro InstallTangoIcon "gtk-spell-check"
- #!insertmacro InstallTangoIcon "gtk-undelete"
- #!insertmacro InstallTangoIcon "gtk-yes"
- #!insertmacro InstallTangoIcon "gtk-zoom-100"
- #!insertmacro InstallTangoIcon "gtk-zoom-in"
- #!insertmacro InstallTangoIcon "gtk-zoom-out"
- !insertmacro InstallTangoIcon "mimetypes\gnome-mime-application-x-shockwave-flash"
- !insertmacro InstallTangoIcon "mimetypes\gnome-mime-image"
- !insertmacro InstallTangoIcon "mimetypes\package"
- !insertmacro InstallTangoIcon "mimetypes\stock_script"
- !insertmacro InstallTangoIcon "mimetypes\vcard"
- #!insertmacro InstallTangoIcon "internet-news-reader"
- #!insertmacro InstallTangoIcon "place-holder"
- !insertmacro InstallTangoIcon "places\gnome-stock-trash"
- !insertmacro InstallTangoIcon "places\gtk-directory"
- !insertmacro InstallTangoIcon "places\gtk-network"
- !insertmacro InstallTangoIcon "status\gtk-dialog-error"
- !insertmacro InstallTangoIcon "status\gtk-dialog-info"
- !insertmacro InstallTangoIcon "status\gtk-dialog-warning"
- !insertmacro InstallTangoIcon "status\gtk-missing-image"
- !insertmacro InstallTangoIcon "status\network-offline"
- #!insertmacro InstallTangoIcon "stock_bookmark"
- #!insertmacro InstallTangoIcon "stock_mail-send"
- #!insertmacro InstallTangoIcon "tab-panel"
+ SetOutPath "$INSTDIR\share\icons\${ICON_THEME}"
+
+ !insertmacro CreateIconThemeSections "actions"
+ !insertmacro CreateIconThemeSectionsSmall "animations"
+ !insertmacro CreateIconThemeSections "apps"
+ !insertmacro CreateIconThemeSections "categories"
+ !insertmacro CreateIconThemeSections "devices"
+ !insertmacro CreateIconThemeSections "emblems"
+ !insertmacro CreateIconThemeSections "emotes"
+ !insertmacro CreateIconThemeSections "mimetypes"
+ !insertmacro CreateIconThemeSections "places"
+ !insertmacro CreateIconThemeSections "status"
+
+ !insertmacro InstallIconTheme "actions\gtk-add"
+ !insertmacro InstallIconTheme "actions\gtk-bold"
+ !insertmacro InstallIconTheme "actions\gtk-cancel"
+ !insertmacro InstallIconTheme "actions\gtk-cancel"
+ !insertmacro InstallIconTheme "actions\gtk-clear"
+ !insertmacro InstallIconTheme "actions\gtk-copy"
+ !insertmacro InstallIconTheme "actions\gtk-cut"
+ !insertmacro InstallIconTheme "actions\gtk-delete"
+ !insertmacro InstallIconTheme "actions\gtk-find"
+ !insertmacro InstallIconTheme "actions\gtk-fullscreen"
+ !insertmacro InstallIconTheme "actions\gtk-go-back-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-go-back-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-go-down"
+ !insertmacro InstallIconTheme "actions\gtk-go-forward-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-go-forward-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-go-up"
+ !insertmacro InstallIconTheme "actions\gtk-goto-first-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-goto-first-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-goto-last-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-goto-last-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-home"
+ !insertmacro InstallIconTheme "actions\gtk-indent-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-indent-rtl"
+ !insertmacro InstallIconTheme "actions\gtk-italic"
+ !insertmacro InstallIconTheme "actions\gtk-jump-to-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-jump-to-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-media-next-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-media-next-rtl"
+ !insertmacro InstallIconTheme "actions\gtk-media-previous-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-media-previous-rtl"
+ !insertmacro InstallIconTheme "actions\gtk-open"
+ !insertmacro InstallIconTheme "actions\gtk-paste"
+ !insertmacro InstallIconTheme "actions\gtk-print"
+ !insertmacro InstallIconTheme "actions\gtk-properties"
+ !insertmacro InstallIconTheme "actions\gtk-redo-ltr"
+ !insertmacro InstallIconTheme "actions\gtk-refresh"
+ !insertmacro InstallIconTheme "actions\gtk-remove"
+ !insertmacro InstallIconTheme "actions\gtk-save"
+ !insertmacro InstallIconTheme "actions\gtk-save-as"
+ !insertmacro InstallIconTheme "actions\gtk-select-all"
+ !insertmacro InstallIconTheme "actions\gtk-stop"
+ !insertmacro InstallIconTheme "actions\gtk-underline"
+ !insertmacro InstallIconTheme "actions\gtk-undo-ltr"
+ !insertmacro InstallIconTheme "actions\stock_add-bookmark"
+ !insertmacro InstallIconTheme "actions\stock_new-tab"
+ !insertmacro InstallIconTheme "actions\stock_new-window"
+ !insertmacro InstallIconThemeSmall "animations\process-working"
+ !insertmacro InstallIconTheme "apps\gnome-settings-theme"
+ !insertmacro InstallIconTheme "apps\gtk-help"
+ !insertmacro InstallIconTheme "apps\terminal"
+ !insertmacro InstallIconTheme "apps\web-browser"
+ !insertmacro InstallIconTheme "categories\gtk-preferences"
+ #!insertmacro InstallIconTheme "cookie-manager"
+ #!insertmacro InstallIconTheme "document-open-recent"
+ #!insertmacro InstallIconTheme "extention"
+ #!insertmacro InstallIconTheme "feed-panel"
+ #!insertmacro InstallIconTheme "gtk-about"
+ #!insertmacro InstallIconTheme "gtk-close"
+ #!insertmacro InstallIconTheme "gtk-convert"
+ #!insertmacro InstallIconTheme "gtk-dialog-authentication"
+ #!insertmacro InstallIconTheme "gtk-dnd-multiple"
+ #!insertmacro InstallIconTheme "gtk-edit"
+ #!insertmacro InstallIconTheme "gtk-execute"
+ #!insertmacro InstallIconTheme "gtk-file"
+ #!insertmacro InstallIconTheme "gtk-index"
+ #!insertmacro InstallIconTheme "gtk-info"
+ #!insertmacro InstallIconTheme "gtk-ok"
+ #!insertmacro InstallIconTheme "gtk-orientation-portait"
+ #!insertmacro InstallIconTheme "gtk-quit"
+ #!insertmacro InstallIconTheme "gtk-select-color"
+ #!insertmacro InstallIconTheme "gtk-select-font"
+ #!insertmacro InstallIconTheme "gtk-sort-ascending"
+ #!insertmacro InstallIconTheme "gtk-spell-check"
+ #!insertmacro InstallIconTheme "gtk-undelete"
+ #!insertmacro InstallIconTheme "gtk-yes"
+ #!insertmacro InstallIconTheme "gtk-zoom-100"
+ #!insertmacro InstallIconTheme "gtk-zoom-in"
+ #!insertmacro InstallIconTheme "gtk-zoom-out"
+ !insertmacro InstallIconTheme "mimetypes\gnome-mime-application-x-shockwave-flash"
+ !insertmacro InstallIconTheme "mimetypes\gnome-mime-image"
+ !insertmacro InstallIconTheme "mimetypes\package"
+ !insertmacro InstallIconTheme "mimetypes\stock_script"
+ !insertmacro InstallIconTheme "mimetypes\vcard"
+ #!insertmacro InstallIconTheme "internet-news-reader"
+ #!insertmacro InstallIconTheme "place-holder"
+ !insertmacro InstallIconTheme "places\gnome-stock-trash"
+ !insertmacro InstallIconTheme "places\gtk-directory"
+ !insertmacro InstallIconTheme "places\gtk-network"
+ !insertmacro InstallIconTheme "status\gtk-dialog-error"
+ !insertmacro InstallIconTheme "status\gtk-dialog-info"
+ !insertmacro InstallIconTheme "status\gtk-dialog-warning"
+ !insertmacro InstallIconTheme "status\gtk-missing-image"
+ !insertmacro InstallIconTheme "status\network-offline"
+ #!insertmacro InstallIconTheme "stock_bookmark"
+ #!insertmacro InstallIconTheme "stock_mail-send"
+ #!insertmacro InstallIconTheme "tab-panel"
SectionEnd
Section "Desktop Shortcuts" SEC03
!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Available plugins like 'Advertisement Blocker', 'Form history filler' and 'Mouse Gestures'."
!insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "Make Midori the default browser."
!insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "User manual of the Midori application."
-!insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "Better looking icons from the Tango icon theme."
+!insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "Better looking icons from the ${ICON_THEME} icon theme."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;;;;;;;;;;;;;;;;;;;;;