nativescript-imagepicker icon indicating copy to clipboard operation
nativescript-imagepicker copied to clipboard

IOS Dark Mode support

Open serhiynovos opened this issue 6 years ago • 5 comments

It does not supports dark mode in iOS properly

serhiynovos avatar Oct 24 '19 08:10 serhiynovos

I wonder why this issue is labelled as feature. To my opinion, the imagepicker component is not usable if your device is in dark-mode. Is there a quick solution to solve this issue?

wschroers avatar Apr 06 '20 23:04 wschroers

@jiswo @serrg1994 I´ve been searching 2 days long for an solution to fix it for dark mode and found nothing ... :( Did you found something ?

@elena-p you know a quick solution maybe ?

Tobi2207 avatar Apr 07 '20 18:04 Tobi2207

@Tobi2207 I wrote my custom solution for it

serhiynovos avatar Apr 07 '20 18:04 serhiynovos

@serrg1994 I‘m relativ new on native Script ... could you please show me how you‘ve done this ?

Tobi2207 avatar Apr 07 '20 22:04 Tobi2207

Rewriting the Storyboard as in this PullRequest works for me. https://github.com/questbeat/QBImagePicker/pull/224

I implemented it in the Podfile to make the replacement automatic.

# app/App_Resources/iOS/Podfile
post_install do |installer|
  path = 'Pods/QBImagePickerController/QBImagePicker/QBImagePicker.storyboard'
  buffer = File.open(path, 'r') { |f| f.read() }
  buffer.gsub!('<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>', '<nil key="textColor"/>')
  File.open(path, 'w') { |f| f.write(buffer) }
end

robario avatar Dec 09 '20 10:12 robario