Statusleiste: Farbe des Balkendiagramms ändern?

Aktuelle Version: 12.21 (22.06.2020)
Alles zum Thema Directory Opus
Antworten
Andreas
Beiträge: 5
Registriert: 6. Sep 2006 17:15

Statusleiste: Farbe des Balkendiagramms ändern?

Beitrag von Andreas »

ich habe den Festplattenplatz in der Statusleiste als Balkendiagramm mit {bg} eingeblendet.

Die erscheint nun in einem Blauen Farbverlauf.

Gibt es eine Möglichkeit die Farbe zu ändern und (noch besser) dem freien Speicherplatz anzupassen?

Also etwa grün bis 66 Prozent, gelb bis 33 Prozent und rot unter 33 Prozent?

Danke

Andreas
Benutzeravatar
Nobmen
Boardbetreuer
Beiträge: 2006
Registriert: 26. Jun 2004 08:48
Betriebssystem: Win 10 Home/Pro 32/64bit
DOpus Version: 12.xx + Betas
Edition: Pro
Kontaktdaten:

Beitrag von Nobmen »

so was in der art?
{bg+w=100,f=1,t=no,c1=#00FF00,c2=#FF0000,g=2,L=2} {pu}% Voll, {df} Frei
Andreas
Beiträge: 5
Registriert: 6. Sep 2006 17:15

Beitrag von Andreas »

Perfekt, Danke!

Äh, ich würde mich gerne etwas näher mit solchen Sachen beschäftigen. Wo ist denn sowas beschrieben? In der deutschen Anleitung habe ich dazu nichts gefunden, in der englischen Befehlsübersicht auch nicht.

Andreas
Benutzeravatar
Nobmen
Boardbetreuer
Beiträge: 2006
Registriert: 26. Jun 2004 08:48
Betriebssystem: Win 10 Home/Pro 32/64bit
DOpus Version: 12.xx + Betas
Edition: Pro
Kontaktdaten:

Beitrag von Nobmen »

Status Bar bar graphs
The {bg} code is used to display a bar graph in status bars. By itself, a simple graph showing the percentage of disk space used on the current drive is shown.
This can be configured and extended using the following syntax:
{bg+<param>,<param>,...}
That is, the bg code is followed by a + sign, followed by multiple parameters separated by commas.
The available parameters are:
W=<width> specify the width of the bar, in pixels
C=#rrggbb specify the color of the bar
C1=#rrggbb specify the left gradient fill color for the bar
C2=#rrggbb specify the right gradient fill color for the bar
C3=#rrggbb color of bar if percentage is greater than 100%
B=#rrggbb background color of bar
B=n no background fill for bar (status bar background shows through)
T=#rrggbb text color for percentage display
T=n no text displayed in bar
G=<type> gradient type, 0=no gradient, 1=normal gradient, 2=scaled gradient
F=<type> frame type, 0=no frame, 1=3D, 2=flat, 3=fill status background
L=<line> line number, 0=full line, 1=top, 2=bottom
V=<value>/<total> value & total = number or other status bar codes
Bar graphs can represent any the percentage of any two data the status bar knows about. The default is the percentage of free disk space but this can be changed using the V parameter. The <value> and <total> parameters for V can be any of the other status bar codes that represent a numerical value, as well as absolute values. For example, sb/4.7g would display the percentage of selected bytes compared to 4.7 gig – the size of a DVD.
The three fill types for the bar graph are specified by the G parameter. The default is a gradient fill– in this instance, the bar is filled with a gradient from the color specified by C1 to the color specified by C2. Specify G=0 to fill the bar graph with a single color – in this case only the C parameter is used. If G=2 is specified, a gradient fill is used, but the extent of the gradient is scaled to the size of the filled section of the bar.
The C3 parameter is used if the calculated percentage would be greater than 100%. When specifying colors, specify either hex or decimal values. For example, #ff0000 corresponds to red – the same as #255,0,0.
The F parameter is used to specify the frame type – for F=3, the bar graph is actually extended in size so that it fills the status bar part it is in, and any other status bar text is drawn on top of it. This lets you use a bar graph as the actual background of the status bar without taking up
Directory Opus 8.2 New Features & Changes. August 2006 18/34
any additional space. Note that the W parameter is still used for F=3 – set W=-1 to have the graph completely fill the status part.
Using the L parameter you can stack two bar graphs on top of each other. By default a bar graph is the full height of the status bar but if you specify L=1 or L=2 the bar graph is only half the normal height. If you have two bar graphs in the one status bar part, one with L=1 and one with L=2, they will be drawn inline, one above the other.
Antworten