Jax-Core / Plainext

A text-only system monitoring widget
MIT License
54 stars 8 forks source link

Disk Usage Meter Alignment #1

Closed IonicOwl closed 3 years ago

IonicOwl commented 3 years ago

Hi, I've been trying to fix a visual issue where the meters for disk usage don't line up with the meters for CPU/RAM/GPU, as shown below:

image

I'm using the Overview style, but this misalignment also exists in the main style too (though I haven't attempted to modify that one). It looks as though an additional trailing space needs adding after each drive label, so I went into @Resources/Styles/Overview.inc and added these in on line 37. This lines everything up after a refresh, but the accent is no longer working:

image

I've tried adding the space before the drive label, Rainmeter ignores it. I also tried adding the space before the colon, but that also breaks it. Is there anything that can be done to correct the misalignment without breaking the functionality of the meter?

EnhancedJax commented 3 years ago

Hey, sorry I didn't notice the misalignment. For your modification did you edit the regex under the text option? You'll have to add the same trailing spaces to that

IonicOwl commented 3 years ago

As far as I know, I haven't edited any Regex, not too familiar with it myself. All I did was add a space after the "C:" and "D:" parts of the line. Is there something else I have to change somewhere?

EnhancedJax commented 3 years ago
[ResourceGraphDrives]
Text=C:  //////////////////// [DriveCPercent:1]%#CRLF#D:  //////////////////// [DriveDPercent:1]%
InlinePattern3=C:  (\/{[DriveCActual:0]}).*
InlinePattern4=D:  (\/{[DriveDActual:0]}).*

Replace ResourceGraphDrives with this in the Overview.inc in folder Styles.

IonicOwl commented 3 years ago

That did the trick! Thank you very much :)