Открыть боковую панель
Aurora OS
Demos
UI Component Gallery
Коммиты
81312c54
Коммит
81312c54
создал
Янв 24, 2024
по автору
Konstantin Hvorov
Зафиксировано автором
Alexey Andreev
Фев 06, 2024
Просмотр файлов
[AppBar] Add only header appbar example.
#29
владелец
5f6f3ccb
Изменения
3
Скрыть пробелы
Построчно
Рядом
qml/pages/AppBarPage.qml
Просмотр файла @
81312c54
...
...
@@ -130,6 +130,15 @@ Page {
text
:
qsTrId
(
"
ui-component-gallery-appbar-bottom-positioned-appbar
"
)
}
Button
{
onClicked
:
pageStack
.
push
(
onlyHeaderComponent
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
preferredWidth
:
Theme
.
buttonWidthSmall
*
1.5
//% "Only header"
text
:
qsTrId
(
"
ui-component-gallery-app-bar-only-header
"
)
}
Button
{
onClicked
:
pageStack
.
push
(
splitviewComponent
)
...
...
@@ -279,6 +288,19 @@ Page {
}
}
Component
{
id
:
onlyHeaderComponent
Page
{
AppBar
{
//% "Header"
headerText
:
qsTrId
(
"
ui-component-gallery-app-bar-header
"
)
//% "Sub Header with long text"
subHeaderText
:
qsTrId
(
"
ui-component-gallery-app-bar-sub-header-with-long-text
"
)
}
}
}
Component
{
id
:
splitviewComponent
...
...
translations/ru.auroraos.UiComponentGallery-ru.ts
Просмотр файла @
81312c54
...
...
@@ -3986,5 +3986,17 @@
<
source
>
Multiline
long
long
long
description
text
<
/source
>
<
translation
>
Многострочный
длинный
длинный
длинный
текст
описания
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-app-bar-only-header
"
>
<
source
>
Only
header
<
/source
>
<
translation
>
Только
заголовок
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-app-bar-header
"
>
<
source
>
Header
<
/source
>
<
translation
>
Заголовок
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-app-bar-sub-header-with-long-text
"
>
<
source
>
Sub
Header
with
long
text
<
/source
>
<
translation
>
Подзаголовок
с
длинным
текстом
<
/translation
>
<
/message
>
<
/context
>
<
/TS
>
translations/ru.auroraos.UiComponentGallery.ts
Просмотр файла @
81312c54
...
...
@@ -3986,5 +3986,17 @@
<
source
>
Multiline
long
long
long
description
text
<
/source
>
<
translation
>
Multiline
long
long
long
description
text
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-app-bar-only-header
"
>
<
source
>
Only
header
<
/source
>
<
translation
>
Only
header
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-app-bar-header
"
>
<
source
>
Header
<
/source
>
<
translation
>
Header
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-app-bar-sub-header-with-long-text
"
>
<
source
>
Sub
Header
with
long
text
<
/source
>
<
translation
>
Sub
Header
with
long
text
<
/translation
>
<
/message
>
<
/context
>
<
/TS
>
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать