-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout viewer #76
Comments
CC @Adyel |
@mominul Where are those image (Layout image) located? I could not find them. |
Layout images are Base64 encoded string located in the layout(json) files. Those are in |
Oh, wow. Why are we using base64 on a desktop application? 😲 We should update it soon. There is an embedded Avro logo and the image is also low res. This will be a lengthy work but we should do it. We can also implement zoom functionality after that. Tools to use: http://www.keyboard-layout-editor.com/#/ NB: I set the size constraint for the image. The window does not change size anymore but you can still tell the diffrerence because the base image is different
|
It was happening because the window size was hardcoded on the this->setFixedHeight(ui->labelImage->height() + ui->labelImage->y());
this->setFixedWidth(ui->labelImage->width()); |
👍 agreed! But can you elaborate on why using Base64 is bad? We are only using it to embed the images in the layout file. Are there any alternate method?
Are you saying to update the images here? I am confused 😕 Zooming functionality would be great! Edit |
Why I think we should change base64.
We need to change the way we import layout. We can implement this feature not compromising backward compatibility. Our Layout package will be a compressed |
👍 for SVG. SVG is a textual format, I think we can easily embed it into a JSON file. Zip approach is not that bad, but wouldn't it bring complexity? |
I personally think |
@Adyel Can you make a prototype? Because I haven't yet written code handling Zip files. |
@mominul I'll look into it. Meanwhile, why not merge the PR? At least the window size will be consistent or you are having a second thought. 🤔 |
I think the images seem really odd if we fix the image's size. You can compare the results. |
Layout viewer resizes every time whenever the layout is changed. This bug has appeared after the layout management changes in Layout Viewer UI.
The text was updated successfully, but these errors were encountered: