* * *

Author Topic: SpkToolbar and Linux  (Read 1271 times)

cappe

  • Jr. Member
  • **
  • Posts: 61
SpkToolbar and Linux
« on: January 31, 2018, 09:36:22 am »
I have a problem with SpkToolbar and linux. The dropdown button does not display the correct symbol but the letter "u". How can I fix it?

wp

  • Hero Member
  • *****
  • Posts: 4500
Re: SpkToolbar and Linux
« Reply #1 on: January 31, 2018, 10:17:20 am »
This is because the author of SpkToolbar draws the dropdown arrow as a character of a special font ("Marlett") which is usually not available under Linux. Let me see if I can borrow some code from the standard toolbar or so.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

cappe

  • Jr. Member
  • **
  • Posts: 61
Re: SpkToolbar and Linux
« Reply #2 on: January 31, 2018, 10:27:56 am »
I have also arrived at the problem of the Marlet font. Is there a font with the dropdown character in linux? At the limit we change the code of the component and then someone will put it where I do not know.

cappe

  • Jr. Member
  • **
  • Posts: 61
Re: SpkToolbar and Linux
« Reply #3 on: January 31, 2018, 10:34:40 am »
I found this 'ᴗ', but is not similar, but it is not beautiful. I will try again

Thaddy

  • Hero Member
  • *****
  • Posts: 6006
Re: SpkToolbar and Linux
« Reply #4 on: January 31, 2018, 10:34:58 am »
If you have also a windows install, you can copy the marlett fonts and put them in your *nix font directory, like /usr/share/fonts/truetype/marlett
I might not give the answer that you want me to.. Peter Green 1969

wp

  • Hero Member
  • *****
  • Posts: 4500
Re: SpkToolbar and Linux
« Reply #5 on: January 31, 2018, 10:47:15 pm »
Please test the new revision on CCR. It uses the ThemeServices now to paint the dropdown arrow.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

cappe

  • Jr. Member
  • **
  • Posts: 61
Re: SpkToolbar and Linux
« Reply #6 on: February 01, 2018, 09:03:39 am »
I installed the new version, but I do not see dropdown arrow. Look at the attached picture.
« Last Edit: February 01, 2018, 09:05:24 am by cappe »

wp

  • Hero Member
  • *****
  • Posts: 4500
Re: SpkToolbar and Linux
« Reply #7 on: February 01, 2018, 09:47:39 am »
Another try (r6163). Now the dropdown arrow is self-painted as a polygon, no more dependence on theme-services; it also gives better control of the arrow color - yesterday's version had an issue here with the dark metro style.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

cappe

  • Jr. Member
  • **
  • Posts: 61
Re: SpkToolbar and Linux
« Reply #8 on: February 01, 2018, 10:16:24 am »
Good job. It works. Thank you.

At the end of the year I will make a donation to the lazzarus / free pascal project
« Last Edit: February 01, 2018, 10:20:53 am by cappe »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus