Recent

Author Topic: SpkToolbar and Linux  (Read 5123 times)

cappe

  • Full Member
  • ***
  • Posts: 191
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: 11853
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.

cappe

  • Full Member
  • ***
  • Posts: 191
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

  • Full Member
  • ***
  • Posts: 191
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: 14197
  • Probably until I exterminate Putin.
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
Specialize a type, not a var.

wp

  • Hero Member
  • *****
  • Posts: 11853
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.

cappe

  • Full Member
  • ***
  • Posts: 191
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: 11853
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.

cappe

  • Full Member
  • ***
  • Posts: 191
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 »

 

TinyPortal © 2005-2018