Walter thought she was wonderful the way she was (1). Whatever she did, he marveled. If she espoused extreme points of view, he was impressed by her arguments; when she shocked society by helping unmarried mothers and their children, he admired her courage; and he loved the way she looked in daring fashions (2).
(Ken Follett, Fall of Giants)
It seems like the second the way phrase is the complement of ‘loved’ (or the object). But the first is not that easy. It seems to be an adverbial or a predicative for ‘she’. How do I understand the first the way phrase?