Appgutta / AGCalendar

Calendar module for Titanium
Other
80 stars 25 forks source link

week day titles and header title shadows are hard coded. #26

Closed aaronce closed 11 years ago

aaronce commented 11 years ago

Hi Chris, this is more of an issue with Kal - but the shadows and font colours for some titles are hard coded in KalView.m "addSubviewsToHeaderView". Is this something you wish to work on at some stage? or would it be easier to ignore alter individually and recompile based on the project being worked on?

ChrisRM commented 11 years ago

The titles are currently localized, meaning it'll follow the phones language setting. If you want more dynamic titles, I could add some functionality for it, I just don't see the use case here.

aaronce commented 11 years ago

it's just when I am customising the UI png files some of the titles are a fixed colour and shadow, like I mentioned it's more of a Kal issue.. I can change manually it's okay :)

ChrisRM commented 11 years ago

Ah, Im in the work of making the module more customizable, so I'll drop this one in. I would love if you sent me a screenshot of the new UI you made. Maybe I'll add some different themes aswell.

aaronce commented 11 years ago

okay, will post one up as soon as I can.

aaronce commented 11 years ago

Hi Chris, here is the screenshot of altered UI, no huge modifications in layout just some colour changes.

edit: didn't realise the screenshot was so large sorry...

By Chris: Just scaled down the image a bit :-)

ChrisRM commented 11 years ago

Nice job, I'll be releasing an experimental branch later tonight (CET+1). The new branch supports the following methods:

var calendarView = Ti.Calendar.createView({
    top:0,
    editable: true,
    showTable: false, // Do not show event table (Default: true)
    theme: {
        tileView: {
            backgroundImage: {
                normal: /* Image */,
                selected: /* Image */,
                adjacent: /* Image */,
                today: /* Image */
            },
            textColor: {
                normal: /* Color */,
                today: /* Color */,
                selected: /* Color */,
                adjacent: /* Color */
            }
        },
        monthView: {
            backgroundImage:  /* Image */
        },
        mainView: {
            gridBackgroundImage:  /* Image */,
            gridDropShadowImage:  /* Image */,
            leftArrowImage:  /* Image */,
            rightArrowImage:  /* Image */,
            titleTextColor: /* Color */,
            titleShadowColor: /* Color */,
            titleShadowOffset: /* CGSize, format: {x:0,y:0} */,
            weekdayTextColor: /* Color */,
            weekdayShadowColor: /* Color */,
            weekdayShadowOffset: /* CGSize, format: {x:0,y:0} */
        },
        gridView: {
            backgroundImage: /* Image */,
            backgroundColor: /* Color */
        }
    },
    color:"white"
});
aaronce commented 11 years ago

nice, looks interesting, I'll have to give a it try.

ChrisRM commented 11 years ago

Fixed in version 2.0, will be merged in version 1.3