diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-25 13:50:30 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-25 13:50:30 +0300 |
commit | 5bbf947aad0db5fb5fe6806751ab27c76e883527 (patch) | |
tree | 54765574f6520317f20e2423fbd1a46b463d0d38 /src/ui/sidebarwidget.c | |
parent | 770313365c781ca52518340c57e2f06e093cfebe (diff) |
It's called a "scheme"
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index e3d7d4a6..8b0792c8 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -771,14 +771,14 @@ static void draw_SidebarWidget_(const iSidebarWidget *d) { | |||
771 | else { | 771 | else { |
772 | iUrl parts; | 772 | iUrl parts; |
773 | init_Url(&parts, &item->url); | 773 | init_Url(&parts, &item->url); |
774 | const iBool isGemini = equalCase_Rangecc(parts.protocol, "gemini"); | 774 | const iBool isGemini = equalCase_Rangecc(parts.scheme, "gemini"); |
775 | draw_Text( | 775 | draw_Text( |
776 | font, | 776 | font, |
777 | add_I2(topLeft_Rect(itemRect), | 777 | add_I2(topLeft_Rect(itemRect), |
778 | init_I2(3 * gap_UI, (d->itemHeight - lineHeight_Text(font)) / 2)), | 778 | init_I2(3 * gap_UI, (d->itemHeight - lineHeight_Text(font)) / 2)), |
779 | fg, | 779 | fg, |
780 | "%s%s%s%s%s%s", | 780 | "%s%s%s%s%s%s", |
781 | isGemini ? "" : cstr_Rangecc(parts.protocol), | 781 | isGemini ? "" : cstr_Rangecc(parts.scheme), |
782 | isGemini ? "" : "://", | 782 | isGemini ? "" : "://", |
783 | escape_Color(isHover ? (isPressing ? uiTextPressed_ColorId | 783 | escape_Color(isHover ? (isPressing ? uiTextPressed_ColorId |
784 | : uiTextFramelessHover_ColorId) | 784 | : uiTextFramelessHover_ColorId) |