Closed Bug 769735 Opened 13 years ago Closed 13 years ago

Apply Metro styling to dialogs

Categories

(Firefox for Metro Graveyard :: General, defect)

x86
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwilde, Assigned: jwilde)

References

Details

(Whiteboard: completed-elm)

The code we pulled from Fennec XUL features dialogs that currently are styled like Android dialogs. These should be re-styled to fit in with Metro. Guidelines from Microsoft about this: http://msdn.microsoft.com/en-us/library/windows/apps/hh738363.aspx http://msdn.microsoft.com/en-us/library/windows/apps/hh738364.aspx
Assignee: nobody → jonathan
Jonathan, do you think we'll need bug 741243, or will we be doing this stuff internally?
I was thinking we'd just do most of this stuff internally with CSS tweaks, as there's already infrastructure in Fennec-XUL for doing dialogs without producing new windows.
(In reply to Jonathan Wilde from comment #2) > I was thinking we'd just do most of this stuff internally with CSS tweaks, > as there's already infrastructure in Fennec-XUL for doing dialogs without > producing new windows. Ok, sounds good. One thing we need to look at is whether we have the right css color attributes to display these elements correctly. If not we can add new ones assuming there's a way to pull the values from the system.
(In reply to Jim Mathies [:jimm] from comment #3) > Ok, sounds good. One thing we need to look at is whether we have the right > css color attributes to display these elements correctly. If not we can add > new ones assuming there's a way to pull the values from the system. I was under the impression that Metro color schemes were determined on a per-app basis, rather than a per-theme basis like previous versions of Windows. Is there a standard pallet to pull from?
We could test this to see if app dialogs change (for example) background color based on the current color theme. If so then we'll have to pull those from the system dynamically. If these are styled based on the app than we should be ok. I honestly don't know for sure, I just poked around for an app that displays a dialog but couldn't find one. http://msdn.microsoft.com/en-us/library/windows/apps/hh465304.aspx This is interesting, while it doesn't answer the color / font question it does raise the issue of dimming the background window. I wonder if we'll need to mimic that as well? Which fennec dialog were you referring to?
(In reply to Jim Mathies [:jimm] from comment #5) > We could test this to see if app dialogs change (for example) background > color based on the current color theme. If so then we'll have to pull those > from the system dynamically. If these are styled based on the app than we > should be ok. I honestly don't know for sure, I just poked around for an app > that displays a dialog but couldn't find one. > > http://msdn.microsoft.com/en-us/library/windows/apps/hh465304.aspx Just spent some time digging around Win8. For dialogs that are for system-wide features, like signing into your Microsoft account, Win8 pulls dialog backgrounds from the user's theme. For dialogs that are application-specific, like entering your current location(s) for the Weather app, the application determines the color scheme. > This is interesting, while it doesn't answer the color / font question it > does raise the issue of dimming the background window. I wonder if we'll > need to mimic that as well? The existing code already handles dimming. :D > Which fennec dialog were you referring to? I'm referring to the overall <xul:dialog> element that's used for "Set Up Sync" on about:home and the application-wide dialogs in browser/metro/base/content/prompt.
awesome!
Depends on: 771692
Status: NEW → ASSIGNED
Whiteboard: completed-elm
Blocks: 785763
Component: Theme → General
Product: Firefox → Firefox for Metro
Version: unspecified → Trunk
Resolving bugs in the Firefox for Metro product that are fixed on the elm branch. Sorry for the bugspam. Search your email for "bugspam-elm" if you want to find and delete all of these messages at once.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.