This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
widget_accounts.xul
105 lines (89 loc) · 4.38 KB
/
widget_accounts.xul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0"?>
<!--
Copyright 2008 by Massimiliano Mirra
This file is part of SamePlace.
SamePlace is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
SamePlace is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
The interactive user interfaces in modified source and object code
versions of this program must display Appropriate Legal Notices, as
required under Section 5 of the GNU General Public License version 3.
In accordance with Section 7(b) of the GNU General Public License
version 3, modified versions must display the "Powered by SamePlace"
logo to users in a legible manner and the GPLv3 text must be made
available to them.
Author: Massimiliano Mirra, <bard [at] hyperstruct [dot] net>
-->
<?xml-stylesheet href="chrome://sameplace/skin/dashboard/state_indicator.css" type="text/css"?>
<?xml-stylesheet href="chrome://sameplace/skin/dashboard/widget_accounts.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://sameplace/locale/status_overlay.dtd">
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="widget_accounts.js"/>
<popupset id="popups">
<menupopup id="account-popup" onpopupshowing="accounts.showingPopup(document.popupNode, this);">
<menuitem class="menuitem-iconic state-indicator" label="&menu.status-online.label;"
availability="available"
oncommand="accounts.requestedStatusChange(document.popupNode, this);"/>
<menuitem class="menuitem-iconic state-indicator" label="&menu.status-away.label;"
availability="available"
show="away"
oncommand="accounts.requestedStatusChange(document.popupNode, this);"/>
<menuitem class="menuitem-iconic state-indicator" label="&menu.status-busy.label;"
availability="available"
show="dnd"
oncommand="accounts.requestedStatusChange(document.popupNode, this);"/>
<menuitem class="menuitem-iconic state-indicator" label="&menu.status-offline.label;"
availability="unavailable"
oncommand="accounts.requestedStatusChange(document.popupNode, this);"/>
<menuseparator/>
<menuitem label="Edit..." oncommand="accounts.requestedEdit(document.popupNode);"/>
<menuitem label="Delete" oncommand="accounts.requestedRemove(document.popupNode);"/>
</menupopup>
</popupset>
<vbox id="widgets">
<widget id="widget-accounts"
title="My Accounts"
image="chrome://sameplace/skin/dashboard/widget_accounts_icon.png"
extid="sameplace@hyperstruct.net">
<grid>
<columns>
<column/>
<column flex="1"/>
<column/>
</columns>
<rows id="accounts">
<row id="widget-accounts-all-accounts" class="pseudo-account list-item" account="*" align="center"
availability="unavailable">
<image class="state-indicator"
onclick="accounts.switchState(this);"
tooltiptext="Click to switch accounts to their previous state"
availability="unavailable"/>
<label value="All" crop="end"/>
<button class="options" type="menu" menu="account-popup"/>
</row>
<separator hidden="true"/>
</rows>
</grid>
<widget-footer>
<label value="Add..." class="text-link" onclick="this.blur(); accounts.requestedAdd();"/>
</widget-footer>
</widget>
</vbox>
<box id="blueprints">
<row class="list-item account" align="center">
<image class="state-indicator"
onclick="accounts.switchState(this);"
tooltiptext="Click to connect/disconnect account"/>
<label class="address" crop="end"
onclick="accounts.switchState(this);"/>
<button class="options" type="menu" menu="account-popup"/>
</row>
</box>
</overlay>