fabrixxm / Year-View

Thunderbird/Lightning "Year view" add-on
https://addons.mozilla.org/it/thunderbird/addon/14467/
GNU General Public License v2.0
13 stars 9 forks source link

Trying to add the "number-week-label": a little direction please? #17

Closed gustavklopp closed 7 years ago

gustavklopp commented 7 years ago

Hi! Thanks for this great and indispensable addon! Only one thing which is missing for me is the number of the 52 weeks (like in the month view). I find it very useful for my usual scheduling.

I'm new to XUL so it's quite complicated to understand the role of each binding...

I've tried to add this :

    <binding id="calendar-year-day-box"
        extends="chrome://calendar/content/widgets/calendar-widgets.xml#dragndropContainer">
        <content orient="vertical">
            <xul:hbox>
                                 <!-- WHAT I'VE ADDED -->
                <xul:label anonid="week-label" align="left" value="X"
                    flex="1" crop="end" mousethrough="always"
                    class="calendar-month-day-box-week-label calendar-month-day-box-date-label"
                    xbl:inherits="relation,selected" />
                                <!-- END OF WHAT I'VE ADDED -->
                <xul:label anonid="day-label" align="right" crop="end"
                    mousethrough="always" class="calendar-month-day-box-date-label"
                    xbl:inherits="relation,selected,value" />
            </xul:hbox>
            <xul:vbox anonid="day-items" class="calendar-year-day-box-items-box"
                flex="1">
                <children />
            </xul:vbox>
            <xul:label anonid="day-more" class="calendar-year-day-box-more-off"
                value=" " />
        </content>

but now, where can I set the value of <xul:label anonid="week-label"?

gustavklopp commented 7 years ago

okay, I've found it...