Recent posts

#1
Scripts and Plugins / Re: new document with size A3 ...
Last post by hjh - Today at 08:45:58 PM
Thank you prcek and Ale.

This solves the issue.

I have to pay attention that the paper size and the units for the document match
scribus.newDocument(scribus.PAPER_A3_MM, (10, 10, 10, 10), scribus.LANDSCAPE, 1, scribus.UNIT_MILLIMETERS, scribus.NOFACINGPAGES, scribus.FIRSTPAGERIGHT, 1)

--Hannes
#2
Scripts and Plugins / Re: new document with size A3 ...
Last post by a.l.e - Today at 08:38:59 PM
btw, for examples, you can have a look at the scripts in

https://github.com/aoloe/scribus-script-repository

but i guess you already found that out, when i gave you the link to my version of the boilerplate...
#3
Scripts and Plugins / Re: Setting the border of a te...
Last post by a.l.e - Today at 08:28:26 PM
As far as I can tell, Scribus does not have the concept of "no border".

If you set the line to 0, then you will get an "hairline" border (you can try it in the console: you will see that, then, the properties palette shows the value as "hairline").

If you look at how the text frames are created by default, you will see that the color of the border is set to "transparent".

This seems the way Scribus does "no borders"... (somehow, I always did this way, but never had any thoughts about it...)
#4
Scripts and Plugins / Re: new document with size A3 ...
Last post by a.l.e - Today at 08:20:20 PM
Indeed, typing help(scribus) in "Script > Show Console" gives you all the commands.

You could also write a Script that you run from inside of Scribus that gets the result of help(scribus) and writes it into a text file.

You can also press F1, open the Scribus help and go to the "For Developers > Scripter API" section and browse it.
Or search for "paper_a5_mm" in there.

Finally, you can go to https://impagina.org/scribus-scripter-api/page/#constants for a description of the API that has a better search function and is a bit better organized (and, sadly, really needs an update! but i'm working on it)

Almost overkill : - )
#5
Beginner Talk / Key F3 - show styles dialog - ...
Last post by hjh - Today at 08:16:01 PM
Hi

If I hit the F3 button nothing happens. According to the 'Edit' menu the 'Styles...' dialog should show up. The place where styles are defined

If I right click on a text frame the 'content properties' box also has the F3 shortcut.

Is this a bug?

Regards
Hannes
#6
Beginner Talk / Re: How Add Inteface Themes
Last post by joseb - Today at 05:15:30 PM
3_ DIFFERENCES BETWEEN EDITABLE AND DELAYABLE FIELDS
Another suggestion would be to unify the colour of the editable fields. In Scribus with Fusiontheme, numeric fields and textual fields (drop-down) have a different background colour. See screenshot below:


Also, in QSS it's practically impossible to match the two colour tones in those editable fields, because you start having problems with the 'arrows'.

I know it will be difficult, but I think these editable fields should have the same background colour. And following the same idea, match those background/activation/hover colours in dropdowns, lists, icons, etc.
#7
Beginner Talk / Re: How Add Inteface Themes
Last post by joseb - Today at 05:12:48 PM
2_ TITLES OF DOCKABLE PANELS OR WINDOWS.
The titles of the dockable panels on the sides have a coloured background under the icon and under the text that does not match the same coloured background when the panel is activated. In the default Scribus interface this is not detected but when you apply the custom QSS you can see the colour difference, as you can see in the following screenshot (under the text "content properties"):


In the custom QSS it has been impossible for me to match this background colour in the side docker panels... maybe because they are custom Qt components or labels for Scribus (I don't know).
#8
Beginner Talk / Re: How Add Inteface Themes
Last post by joseb - Today at 05:11:23 PM
Things I have detected when changing and forcing the Scribus interface with a custom QSS style:

1_ DIFFERENT BEHAVIOUR IN VARIOUS THEMES
I use Windows 11 and the preference themes are:
- "Empty.
- Fusion.
- Windows 11.
- Windows vista.
- Windows.

I detect differences in behaviour between the different themes. For example, let's focus only on the "empty" and Fusion themes with these elements:
- Font dropdown (arial, etc).
- Line spacing dropdown (baseline, fixed...).
- Certain "active" icons such as text alignment (right, left, centre, justified...).

The font drop-down always marks with a blue colour where I pass the mouse cursor. The line spacing dropdown marks the blue colour only with Fusiontheme (when the dropdown does not open completely and has a vertical slider bar). Active icons are marked with blue colour in Emptytheme and not in Fusiontheme.

In the following two screenshots you can see the differences:



The same happens in the list of "layers", "markers", "outline", etc. It changes the way the blue colour behaves, which in my case is the "activation" or "hover" colour.

My first suggestions would be:
- Unify all themes into 1 so that everyone contributes improvements to the same interface theme.
- Make Scribus less OS-dependent and, if possible, make Scribus present the same interface and theme on all operating systems (as far as possible).
- Unify the behaviour between dropdowns and icons.
- That all dropdowns, icons and lists have the same hover colour and the same activation colour (in my screenshots it is blue).
#9
Beginner Talk / Re: How Add Inteface Themes
Last post by joseb - Today at 04:55:55 PM
To start testing these custom QSS styles you can generate a generic shortcut on your Windows desktop and give it the following path:

'C:\Program Files\Scribus 1.7.1.svn\Scribus.exe' --style=Fusion --stylesheet='C:\...\250712_SCRIBUS_Custom-dark.qss'

*Edit the path to the Scribus executable and the path to the QSS folder depending on where it is located on each computer.

But I think you are right and you should go for a single Scribus interface.
Discard the possibility of creating many themes now and focus only on one. Create a solid 'base' and maybe consider in the future having users add custom interface themes.

Although applying these custom QSS styles has made me reflect on the Scribus interface and how it is approached. In the following posts I will try to make some suggestions for future versions of Scribus and its interface.
#10
Scripts and Plugins / Re: new document with size A3 ...
Last post by prcek - Today at 04:50:40 PM
I would try running
import scribus
help(scribus)
in python console