mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-07 03:42:13 +02:00
fix - dimming the numbers at the beginning
It wasn't formatting them when they were at the same Y as the active node. Now they are, but in return, the rest of those titles are not bold when active.
This commit is contained in:
parent
9ce26f65ba
commit
d53c923049
25
h-m-m
25
h-m-m
|
@ -2648,15 +2648,22 @@ function display(&$mm, $force_center = false)
|
||||||
.reset_color
|
.reset_color
|
||||||
.mb_substr($line, $x2)
|
.mb_substr($line, $x2)
|
||||||
;
|
;
|
||||||
else // styling the codes when the node is not active
|
|
||||||
$line =
|
// styling the codes when the node is not active
|
||||||
mb_ereg_replace
|
// it used to be the 'else' of the above condition
|
||||||
(
|
// because it resets the bold attribute of the active
|
||||||
'\b(.?\d+)\. '
|
// node. However, it think losing the bold attribute
|
||||||
,dim_on.'\\1. '.dim_off
|
// is better than leaving the numbers unformatted
|
||||||
,$line
|
// in the same line as the active node.
|
||||||
)
|
|
||||||
;
|
$line =
|
||||||
|
mb_ereg_replace
|
||||||
|
(
|
||||||
|
'\b(.?\d+)\. '
|
||||||
|
,dim_on.'\\1. '.dim_off
|
||||||
|
,$line
|
||||||
|
)
|
||||||
|
;
|
||||||
|
|
||||||
// styling the search results
|
// styling the search results
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue