Skip to content

ScrolledView issue #21

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

Closed
OhYoungJin1 opened this issue May 6, 2022 · 4 comments
Closed

ScrolledView issue #21

OhYoungJin1 opened this issue May 6, 2022 · 4 comments
Assignees

Comments

@OhYoungJin1
Copy link

Scroller background not transparent in ScrolledView

I found

[view.cpp 102]
To prevent this situation, we force the background drawing of the ScrolledView even if fill flags are set to none.

please...

@ldesroches
Copy link
Contributor

Hi,

Sorry I don't get the issue. You have an issue with the horizontal and vertical scrollers?
Screenshot from 2022-05-10 15-08-40
Is something wrong with this?

Can you share a picture of what is not behaving as you expect?

Regards,
Ludovic

@OhYoungJin1
Copy link
Author

1

I want the gray area to be transparent

ex)
auto list = make_sharedegt::ScrolledView(ScrolledView::Policy::as_needed, ScrolledView::Policy::as_needed);
list->fill_flags(Theme::FillFlag::blend);
list->color(Palette::ColorId::bg, Palette::transparent);
----->
22

auto list = make_sharedegt::ScrolledView(ScrolledView::Policy::as_needed, ScrolledView::Policy::as_needed);
list->fill_flags(Theme::FillFlag::blend);
list->color(Palette::ColorId::bg, egt::Color(229, 229, 229));
----->
33

list->color(Palette::ColorId::bg, Palette::transparent); --> background color is black!
list->color(Palette::ColorId::bg, egt::Color(229, 229, 229)); --> background color is gray!

@ldesroches
Copy link
Contributor

The issue is probably related to the widgets inside your ScrolledView

egt::TopWindow window;
window.color(egt::Palette::ColorId::bg, egt::Palette::blue);
egt::ScrolledView view(window, egt::Rect(0, 0, 200, 200));
egt::Frame frame(egt::Rect(egt::Point(), egt::Size(400, 400)));
frame.fill_flags(egt::Theme::FillFlag::blend);
frame.color(egt::Palette::ColorId::bg, egt::Palette::transparent);
view.add(frame);
window.show();

image

@OhYoungJin1
Copy link
Author

The issue is probably related to the widgets inside your ScrolledView
------> Everything was resolved well !!

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants