diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-02-18 20:04:59 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-02-18 20:04:59 +0000 |
commit | 5668fa1154bcf52f04e877be25918561a930ea47 (patch) | |
tree | 8b58d32794c52cbfa2ee02c0032f5fd851a8cf9e | |
parent | 1a7a1e09b8e66c83e3e0a848c0d30a7ae89de9db (diff) | |
download | netsurf-5668fa1154bcf52f04e877be25918561a930ea47.tar.gz netsurf-5668fa1154bcf52f04e877be25918561a930ea47.tar.bz2 |
Remove default theme's dependency on AISS
svn path=/trunk/netsurf/; revision=6567
20 files changed, 48 insertions, 25 deletions
diff --git a/amiga/dist/Install b/amiga/dist/Install index 073ad3601..1871b682a 100755 --- a/amiga/dist/Install +++ b/amiga/dist/Install @@ -23,7 +23,7 @@ (set @default-dest (askdir - (prompt "Where would you like to install NetSurf?") + (prompt "Where would you like to install NetSurf?") (help @askdir-help) (default @default-dest) ) @@ -31,6 +31,11 @@ (set #icon-exists (exists (tackon @default-dest "NetSurf.info"))) +; ***************************************************** +; TODO: Check OS version/existing build and provide +; option to select graphics.library or part-Cairo build. +; **************************************************** + (copylib (prompt "Please check the version of NetSurf you are copying against " "any which might already be installed.") @@ -62,7 +67,10 @@ ( (set #themename (askchoice - (prompt "Please select theme") + (prompt "Please select theme\n" + "AISS theme requires AISS and def_pointers packages " + "to be installed.") +; perhaps we should be detecting these? (help @askchoice-help) (choices "Default" "AISS") (default 0) diff --git a/amiga/dist/Install.info b/amiga/dist/Install.info Binary files differindex 39b1f26a5..a469e30ba 100644 --- a/amiga/dist/Install.info +++ b/amiga/dist/Install.info diff --git a/amiga/dist/NetSurf.guide b/amiga/dist/NetSurf.guide index 45d9d06b5..c9b81fa94 100755 --- a/amiga/dist/NetSurf.guide +++ b/amiga/dist/NetSurf.guide @@ -32,7 +32,7 @@ The options file is stored in @{"Resources/Options" link Resources/Options/Main} @{b}hotlist_file@{ub} Path to Hotlist file @{b}use_pubscreen@{ub} Open NetSurf on the named public screen @{b}screen_modeid@{ub} Mode ID for NetSurf's custom screen. If not specified, NetSurf will prompt on startup. Choose Settings=>Save settings to make permanent. -@{b}theme@{ub} Path to theme (default is Resources/Themes/Default - an alternative included theme is Resources/Themes/AISS) +@{b}theme@{ub} Path to @{"theme" link Themes} (default is Resources/Themes/Default) @{b}no_iframes@{ub} Disable IFrames @{b}clipboard_write_utf8@{ub} Write UTF-8 strings to the clipboard along with a charset identifier (when this option is 0, NetSurf will convert copied strings to local charset) @{b}context_menu@{ub} Enable context menus @@ -50,6 +50,17 @@ The options file is stored in @{"Resources/Options" link Resources/Options/Main} @endnode +@node Themes +AmigaOS NetSurf supports basic theming of gadget imagery. Themes live in the Resources/Themes directory, and two are included by default: + +Default - default theme with no external dependencies. +AISS - theme using Mason's AISS images for buttons, and the def_pointers package for 32-bit pointer images. + +The file "Theme" in the theme directory contains the files used for that theme. See @{"Default Theme file" link Resources/Themes/Default/Theme/Main} for more details. + +Theme directories should be copied and renamed if themes are modified, as update installation of NetSurf will overwrite any changes. AmigaOS NetSurf themes are not compatible with NetSurf for other platforms. +@endnode + @node arexx "ARexx port" NetSurf's ARexx port is called NETSURF. diff --git a/amiga/dist/NetSurf.guide.info b/amiga/dist/NetSurf.guide.info Binary files differindex 512531fe9..fedb27fa7 100644 --- a/amiga/dist/NetSurf.guide.info +++ b/amiga/dist/NetSurf.guide.info diff --git a/amiga/dist/netsurf.readme b/amiga/dist/netsurf.readme index 31712e920..7d9c71314 100755 --- a/amiga/dist/netsurf.readme +++ b/amiga/dist/netsurf.readme @@ -4,7 +4,6 @@ Author: NetSurf contributors (OS4 port by Chris Young) Type: comm/www Version: 2.0 development (SVN 5911) Architecture: ppc-amigaos >= 4.0.0 -Requires: AISS This is a preview release of the OS4 native port of NetSurf. It is beta software, which means it is unstable and missing @@ -14,9 +13,6 @@ This is provided for testing purposes only, to gain feedback in order to fix bugs for the real release and to prioritise features. -IF YOU UPDATE AN OLDER VERSION YOU MAY NEED TO ADD -screen_depth:32 TO YOUR RESOURCES/OPTIONS FILE - Please report bugs to chris@unsatisfactorysoftware.co.uk, on the Amigans.net forums or in the bug tracker at http://www.unsatisfactorysoftware.co.uk/bugs (the bug tracker diff --git a/amiga/gui.c b/amiga/gui.c index 06bd182e2..c1da6f9fa 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1507,7 +1507,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, char stop[100],stop_s[100],stop_g[100]; char reload[100],reload_s[100],reload_g[100]; char home[100],home_s[100],home_g[100]; - char closetab[100]; + char closetab[100],closetab_s[100],closetab_g[100]; if((bw->browser_window_type == BROWSER_WINDOW_IFRAME) && option_no_iframes) return NULL; @@ -1678,6 +1678,8 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, ami_get_theme_filename(home_s,"theme_home_s"); ami_get_theme_filename(home_g,"theme_home_g"); ami_get_theme_filename(closetab,"theme_closetab"); + ami_get_theme_filename(closetab_s,"theme_closetab_s"); + ami_get_theme_filename(closetab_g,"theme_closetab_g"); gwin->shared->objects[OID_MAIN] = WindowObject, WA_ScreenTitle,nsscreentitle, @@ -1808,6 +1810,8 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, BUTTON_Transparent,TRUE, BUTTON_RenderImage,BitMapObject, BITMAP_SourceFile,closetab, + BITMAP_SelectSourceFile,closetab_s, + BITMAP_DisabledSourceFile,closetab_g, BITMAP_Screen,scrn, BITMAP_Masking,TRUE, BitMapEnd, diff --git a/amiga/resources/Themes/AISS/Theme b/amiga/resources/Themes/AISS/Theme index 9bfde1a43..6fafb660d 100755 --- a/amiga/resources/Themes/AISS/Theme +++ b/amiga/resources/Themes/AISS/Theme @@ -19,6 +19,8 @@ theme_home:*TBImages:home theme_home_s:*TBImages:home_s theme_home_g:*TBImages:home_g theme_closetab:*TBImages:list_cancel +theme_closetab_s:*TBImages:list_cancel +theme_closetab_g:*TBImages:list_cancel theme_list_folder_closed:*TBImages:list_folderfold theme_list_folder_open:*TBImages:list_folderunfold theme_list_bookmark:*TBImages:list_bookmark diff --git a/amiga/resources/Themes/Default/Theme b/amiga/resources/Themes/Default/Theme index 464c9a2ca..407ea0b12 100755 --- a/amiga/resources/Themes/Default/Theme +++ b/amiga/resources/Themes/Default/Theme @@ -5,7 +5,7 @@ # is stored. # # If filename is prefixed by an asterisk, it will be treated as -# a full path to a file. +# a full path to a file (relative to PROGDIR:) # # Where theme_image is suffixed by _s or _g, these are the selected # and ghosted version of the image. @@ -16,22 +16,24 @@ # theme_throbber is a film strip of theme_throbber_frames frames # The first frame must be the inactive image. # -theme_nav_west:*TBImages:nav_west -theme_nav_west_s:*TBImages:nav_west_s -theme_nav_west_g:*TBImages:nav_west_g -theme_nav_east:*TBImages:nav_east -theme_nav_east_s:*TBImages:nav_east_s -theme_nav_east_g:*TBImages:nav_east_g -theme_stop:*TBImages:stop -theme_stop_s:*TBImages:stop_s -theme_stop_g:*TBImages:stop_g -theme_reload:*TBImages:reload -theme_reload_s:*TBImages:reload_s -theme_reload_g:*TBImages:reload_g -theme_home:*TBImages:home -theme_home_s:*TBImages:home_s -theme_home_g:*TBImages:home_g -theme_closetab:*TBImages:list_cancel +theme_nav_west:back.png +theme_nav_west_s:back.png +theme_nav_west_g:back_g.png +theme_nav_east:forward.png +theme_nav_east_s:forward.png +theme_nav_east_g:forward_g.png +theme_stop:stop.png +theme_stop_s:stop.png +theme_stop_g:stop_g.png +theme_reload:reload.png +theme_reload_s:reload.png +theme_reload_g:reload_g.png +theme_home:home.png +theme_home_s:home.png +theme_home_g:home_g.png +theme_closetab:closetab.png +theme_closetab_s:closetab.png +theme_closetab_g:closetab_g.png theme_list_folder_closed: theme_list_folder_open: theme_list_bookmark: diff --git a/amiga/resources/Themes/Default/back.png b/amiga/resources/Themes/Default/back.png Binary files differnew file mode 100755 index 000000000..756ec53fa --- /dev/null +++ b/amiga/resources/Themes/Default/back.png diff --git a/amiga/resources/Themes/Default/back_g.png b/amiga/resources/Themes/Default/back_g.png Binary files differnew file mode 100644 index 000000000..140156fb0 --- /dev/null +++ b/amiga/resources/Themes/Default/back_g.png diff --git a/amiga/resources/Themes/Default/closetab.png b/amiga/resources/Themes/Default/closetab.png Binary files differnew file mode 100644 index 000000000..21d97f11d --- /dev/null +++ b/amiga/resources/Themes/Default/closetab.png diff --git a/amiga/resources/Themes/Default/closetab_g.png b/amiga/resources/Themes/Default/closetab_g.png Binary files differnew file mode 100644 index 000000000..a50fa0f45 --- /dev/null +++ b/amiga/resources/Themes/Default/closetab_g.png diff --git a/amiga/resources/Themes/Default/forward.png b/amiga/resources/Themes/Default/forward.png Binary files differnew file mode 100755 index 000000000..13abb3bd2 --- /dev/null +++ b/amiga/resources/Themes/Default/forward.png diff --git a/amiga/resources/Themes/Default/forward_g.png b/amiga/resources/Themes/Default/forward_g.png Binary files differnew file mode 100644 index 000000000..1e1f5b9a0 --- /dev/null +++ b/amiga/resources/Themes/Default/forward_g.png diff --git a/amiga/resources/Themes/Default/home.png b/amiga/resources/Themes/Default/home.png Binary files differnew file mode 100755 index 000000000..da09bf459 --- /dev/null +++ b/amiga/resources/Themes/Default/home.png diff --git a/amiga/resources/Themes/Default/home_g.png b/amiga/resources/Themes/Default/home_g.png Binary files differnew file mode 100644 index 000000000..77f4f1cf9 --- /dev/null +++ b/amiga/resources/Themes/Default/home_g.png diff --git a/amiga/resources/Themes/Default/reload.png b/amiga/resources/Themes/Default/reload.png Binary files differnew file mode 100755 index 000000000..2aa796679 --- /dev/null +++ b/amiga/resources/Themes/Default/reload.png diff --git a/amiga/resources/Themes/Default/reload_g.png b/amiga/resources/Themes/Default/reload_g.png Binary files differnew file mode 100644 index 000000000..c5796fe0e --- /dev/null +++ b/amiga/resources/Themes/Default/reload_g.png diff --git a/amiga/resources/Themes/Default/stop.png b/amiga/resources/Themes/Default/stop.png Binary files differnew file mode 100755 index 000000000..6b4c3a56b --- /dev/null +++ b/amiga/resources/Themes/Default/stop.png diff --git a/amiga/resources/Themes/Default/stop_g.png b/amiga/resources/Themes/Default/stop_g.png Binary files differnew file mode 100644 index 000000000..1466e853e --- /dev/null +++ b/amiga/resources/Themes/Default/stop_g.png |