Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

Cannot set thumbnail selection color

More
IP: 91.115.170.133 5 years 1 month ago #15390 by thoechtl
We use the current version of the Cordova plugin and want to change the highlight color of the currently selected thumbnail to match our app theme. If I understand the docs ( www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=146 ) it should be possible with the following snippet:
Code:
RadaeePDFPlugin.setGlobal({ name: 'g_sel_color', value: 0x4020c4b2, });

But this does not work for me.

I also tried to set the variable _g_sel_color directly in RDVGlobal.m and some other approaches, but everything without success.

Could you please help me? We have to change the color for iOS and Android ...
More
IP: 111.196.247.170 5 years 1 month ago - 5 years 1 month ago #15392 by radaee
dear user:
we checked some codes, and found that select color of thumb view is not using g_sel_color.
you can find codes from [PDFThumbView onDrawOffScreen] implement in PDFThumbView.m
Code:
if(m_sel_pno >= 0 && m_sel_pno >= start && m_sel_pno <= end) { RDVPage *vpage = [m_layout vGetPage:m_sel_pno]; float scale = 1.0f/(m_zoom * m_scale_pix); float left = (float)vpage.x - self.contentOffset.x * m_scale_pix; float top = (float)vpage.y - self.contentOffset.y * m_scale_pix; CGRect rect = CGRectMake(scale * left, scale * top, scale * vpage.w, scale * vpage.h); //CGRect rect = CGRectMake(0, 0, scale * vpage.w, scale * vpage.h); CGFloat clr[4] = {0, 0, 1, 0.25}; //currently, select color is const value CGContextSetFillColor(ctx, clr); CGContextFillRect(ctx, rect); }
that line:
Code:
CGFloat clr[4] = {0, 0, 1, 0.25};
is blue transparency color.
Last edit: 5 years 1 month ago by radaee.
Time to create page: 0.388 seconds
Powered by Kunena Forum