Comments (6)
I can only assume that it has to do with the Context-manipulation used for the different preview-flavors has something to do with it.
This assumption appears to have been correct - the offending context is from RTLComponentCard
. This appears, in turn, to be caused by Context::createConfigurationContext
not inheriting the theme of its parent context, and hence upon resolution receiving the default theme for the platform (for API 29, where I'm performing these tests, this is android:style/Theme.DeviceDefault.Light.DarkActionBar
).
I realize that working around this limitation might be out of scope for this library, but I think it might be possible to work around the issue by 'forwarding' the theme of the parent context to the newly created context by Context::createConfigurationContext
. If time allows, I'll make a PR!
from showkase.
Come to think of it - what is the reason that a configuration-context is created in this case? 🤔
Looking at the code, the following line:
Context
in the RTLComponentCard
-composable, and there was no observable difference.
Could the configuration-context be redundant in this case?
from showkase.
@hedvigoscar I think you might be right. Afair, LocalLayoutDirection
didn't exist when I first created Showkase. I probably added it during some of the later iterations. I think you might be right about it being fine to remove it. Do you wanna push that PR since you found the issue anyway :D I can do it too but would love to make sure you get credited with a contribution to your name!!
from showkase.
That's thoughtful of you, thanks!
I'll have it up shortly.
from showkase.
Done, check out #168 @vinaygaba 🙂
from showkase.
Fixed by #168
from showkase.
Related Issues (20)
- Update compileSdk to 34 and fix deprecation warning HOT 2
- UI components are not showing up (yet groups are) HOT 4
- Showkase was not able to find the root class that youpassed to @ShowkaseScreenshot. Make sure that you have configured Showkase correctly. HOT 2
- Paparazzi + Showkase Integration - java.io.FileNotFoundException (File name too long) HOT 5
- PreviewParameters don't work with Kotlin 1.9 HOT 1
- Incorrect generate ShowcaseBrowser color with kotlin 1.9 HOT 2
- Updating compileSdkVersion to 34 causes deceprecation errors for newInstance() HOT 2
- exported ShowkaseBrowserActivity HOT 3
- Incompatibility with Dagger 2.48 HOT 7
- Is that possible to download an image from url? HOT 2
- Showkase silently ignores duplicate ShowkaseComposables
- IllegalStateException on ShowkaseMultiPreviewCodegenMetadata HOT 6
- When using Showkase version 1.01 or 1.0.2 I get this error "error: cannot find symbol - import androidx.room.util.RelationUtil; " HOT 1
- old account label bypassing all fraud measures HOT 1
- Multi module: same package name leads to silently ignoring previews
- Class file has wrong version 61.0, should be 55.0 HOT 1
- Showkase ignoring the Locale parameter for @Preview
- Feature Request: Compose Multiplatform Support HOT 4
- Fatal Exception: java.lang.RuntimeException: Unable to start activity ShowkaseBrowserActivity HOT 12
- Any plans to add support for other compose multiplatform targets like ios and desktop? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from showkase.