DatePickerDialog-iOS-Swift icon indicating copy to clipboard operation
DatePickerDialog-iOS-Swift copied to clipboard

how change to my color theme?

Open longxianlin opened this issue 10 years ago • 11 comments

I want background black color, font color white change many views, not working.

DatePickerDialog().show("选择预约日期", doneButtonTitle: "确定", cancelButtonTitle: "取消", datePickerMode: UIDatePickerMode.DateAndTime) {
                (date) -> Void in
                print("选中时间\(date)")
                self.pickedDate = date
                self.tableView.reloadData()
                //self.textField.text = "\(date)"
            }

this work in swift2.1

longxianlin avatar Oct 29 '15 13:10 longxianlin

ok, i try this libs FxDatePicker, very good

longxianlin avatar Oct 29 '15 13:10 longxianlin

@HardcoreIOS said: Please allow the user to have custom features. Like I want the background to have a blur when the picker view is presented, the pickerview's background to be a black instead of the default gray, and the pickerview's text's to be white instead of the default black!

lfarah avatar Jul 19 '16 19:07 lfarah

Is customizing the color possible yet?

KhaVNguyen avatar Aug 21 '16 22:08 KhaVNguyen

Not yet. I didn't have time to work on this project lately, but I didn't forget about you! @Reservations

lfarah avatar Sep 05 '16 10:09 lfarah

That sounds great. Could be a bit difficult to let the DatePickerDialog be fully customizable. But it should be worth to implement a few styles (for instance dark-blurry, white-transparent and so on and so forth).

benjohnde avatar Sep 18 '16 21:09 benjohnde

No news on this yet, right?

aravasio avatar Dec 26 '16 21:12 aravasio

@aravasio I ended up just customizing the color by editing the RGB settings in the code of the library.

KhaVNguyen avatar Dec 26 '16 21:12 KhaVNguyen

Good call. For some reason it never occurred to me to actually modify a Pod.

aravasio avatar Dec 26 '16 22:12 aravasio

Hey @Reservations, what do you think about opening a PR so other people can customize the colors?

lfarah avatar Dec 28 '16 15:12 lfarah

Really sorry guys for not giving attention to this... I'm really packed with stuff to do in other projects

lfarah avatar Dec 28 '16 15:12 lfarah

Just change the gradient color or remove the gradient and change background colors of all title label, Done button, date picker and cancel button.

ghost avatar Feb 06 '18 10:02 ghost