Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing a user interface based on preferences

I want to use the built-in preference system for my xulrunner (Firefox) application. But I can't figure out how to easily drive the user interface based on preferences.

The user can specify a list of home pages, and each home page will show up in a different tab. Because the tabs are in the presentation layer, I'd like to create them using a template in the xul code. Is this possible?

I haven't seen a way to do this with xul templates. Is there an alternative templating system that would allow me to change the UI based on user preferences?

like image 683
ng.mangine Avatar asked Apr 23 '26 22:04

ng.mangine


1 Answers

No, templating in XUL is not powerful enough, so you're stuck with writing JavaScript code that reads the preferences and opens the needed tabs.

like image 90
Nickolay Avatar answered Apr 26 '26 13:04

Nickolay