Открыть боковую панель
Aurora OS
Demos
UI Component Gallery
Коммиты
a48fcf1b
Коммит
a48fcf1b
создал
Янв 24, 2024
по автору
Konstantin Hvorov
Зафиксировано автором
Alexey Andreev
Фев 06, 2024
Просмотр файлов
[AppBar] Update AppBar example page.
#29
владелец
cb701f62
Изменения
3
Скрыть пробелы
Построчно
Рядом
qml/pages/AppBarPage.qml
Просмотр файла @
a48fcf1b
...
...
@@ -43,7 +43,7 @@ Page {
width
:
parent
.
width
-
2
*
Theme
.
horizontalPageMargin
spacing
:
Theme
.
paddingSmall
// Move content under
a
pp
b
ar
// Move content under
A
pp
B
ar
Item
{
width
:
1
height
:
appBar
.
appBarHeight
+
Theme
.
paddingLarge
...
...
@@ -62,16 +62,16 @@ Page {
}
Button
{
onClicked
:
appBar
.
_
open
Status
=
!
appBar
.
_
open
Status
onClicked
:
appBar
.
open
ed
?
appBar
.
close
()
:
appBar
.
open
()
anchors.horizontalCenter
:
parent
.
horizontalCenter
preferredWidth
:
Theme
.
buttonWidthSmall
*
1.5
text
:
(
appBar
.
_
open
Status
?
//% "
Hid
e"
qsTrId
(
"
ui-component-gallery-appbar-
hid
e
"
)
:
text
:
(
appBar
.
open
ed
?
//% "
Clos
e"
qsTrId
(
"
ui-component-gallery-appbar-
clos
e
"
)
:
//% "Open"
qsTrId
(
"
ui-component-gallery-appbar-open
"
))
+
//% "
a
pp
b
ar"
//% "
A
pp
B
ar"
qsTrId
(
"
ui-component-gallery-appbar-appbar-suffix
"
)
}
...
...
@@ -84,9 +84,9 @@ Page {
preferredWidth
:
Theme
.
buttonWidthSmall
*
1.5
//% "Header text: "
text
:
qsTrId
(
"
ui-component-gallery-appbar-header-text
"
)
+
(
appBar
.
headerText
===
""
?
//% "
S
how"
//% "
s
how"
qsTrId
(
"
ui-component-gallery-appbar-show
"
)
:
//% "
H
ide"
//% "
h
ide"
qsTrId
(
"
ui-component-gallery-appbar-hide
"
))
}
...
...
@@ -97,9 +97,9 @@ Page {
preferredWidth
:
Theme
.
buttonWidthSmall
*
1.5
//% "SubHeader text: "
text
:
qsTrId
(
"
ui-component-gallery-appbar-subheader-text
"
)
+
(
appBar
.
subHeaderText
===
""
?
//% "
S
how"
//% "
s
how"
qsTrId
(
"
ui-component-gallery-appbar-show
"
)
:
//% "
H
ide"
//% "
h
ide"
qsTrId
(
"
ui-component-gallery-appbar-hide
"
))
}
...
...
@@ -110,9 +110,9 @@ Page {
preferredWidth
:
Theme
.
buttonWidthSmall
*
1.5
//% "Header box: "
text
:
qsTrId
(
"
ui-component-gallery-appbar-header-box
"
)
+
(
appBar
.
_headerHide
?
//% "
S
how"
//% "
s
how"
qsTrId
(
"
ui-component-gallery-appbar-show
"
)
:
//% "
H
ide"
//% "
h
ide"
qsTrId
(
"
ui-component-gallery-appbar-hide
"
))
}
...
...
@@ -158,10 +158,10 @@ Page {
id
:
appBar
AppBarButton
{
//% "
Hid
e bottom bar"
property
string
context
:
qsTrId
(
"
ui-component-gallery-appbar-
hid
e-bottom-bar
"
)
//% "
Clos
e bottom bar"
property
string
context
:
qsTrId
(
"
ui-component-gallery-appbar-
clos
e-bottom-bar
"
)
onClicked
:
toolBar
.
hid
e
()
onClicked
:
toolBar
.
clos
e
()
icon.source
:
"
image://theme/icon-m-gps
"
}
...
...
@@ -200,9 +200,9 @@ Page {
anchors.horizontalCenter
:
parent
.
horizontalCenter
//% "Header"
text
:
qsTrId
(
"
ui-component-gallery-appbar-header
"
)
+
(
appBar
.
headerText
===
""
?
//% "
S
how"
//% "
s
how"
qsTrId
(
"
ui-component-gallery-appbar-show
"
)
:
//% "
H
ide"
//% "
h
ide"
qsTrId
(
"
ui-component-gallery-appbar-hide
"
))
}
...
...
@@ -221,28 +221,28 @@ Page {
}
Button
{
onClicked
:
appBar
.
_
open
Status
?
appBar
.
hid
e
()
:
appBar
.
open
()
onClicked
:
appBar
.
open
ed
?
appBar
.
clos
e
()
:
appBar
.
open
()
anchors.horizontalCenter
:
parent
.
horizontalCenter
text
:
(
appBar
.
_
open
Status
?
//% "
Hid
e"
qsTrId
(
"
ui-component-gallery-appbar-
hid
e
"
)
:
text
:
(
appBar
.
open
ed
?
//% "
Clos
e"
qsTrId
(
"
ui-component-gallery-appbar-
clos
e
"
)
:
//% "Open"
qsTrId
(
"
ui-component-gallery-appbar-open
"
))
+
//% "
a
pp
b
ar"
//% "
A
pp
B
ar"
qsTrId
(
"
ui-component-gallery-appbar-appbar-suffix
"
)
}
Button
{
onClicked
:
toolBar
.
_
open
Status
?
toolBar
.
hid
e
()
:
toolBar
.
open
()
onClicked
:
toolBar
.
open
ed
?
toolBar
.
clos
e
()
:
toolBar
.
open
()
anchors.horizontalCenter
:
parent
.
horizontalCenter
text
:
(
toolBar
.
_
open
Status
?
//% "
Hid
e"
qsTrId
(
"
ui-component-gallery-appbar-
hid
e
"
)
:
text
:
(
toolBar
.
open
ed
?
//% "
Clos
e"
qsTrId
(
"
ui-component-gallery-appbar-
clos
e
"
)
:
//% "Open"
qsTrId
(
"
ui-component-gallery-appbar-open
"
))
+
//% "
t
ool
b
ar"
//% "
T
ool
B
ar"
qsTrId
(
"
ui-component-gallery-appbar-toolbar-suffix
"
)
}
...
...
@@ -263,10 +263,10 @@ Page {
}
AppBarButton
{
onClicked
:
toolBar
.
hid
e
()
onClicked
:
toolBar
.
clos
e
()
//% "
Hide
"
text
:
qsTrId
(
"
ui-component-gallery-appbar-
hide
"
)
//% "
Close ToolBar
"
text
:
qsTrId
(
"
ui-component-gallery-appbar-
close-toolbar
"
)
icon.source
:
"
image://theme/icon-m-gps
"
}
...
...
translations/ru.auroraos.UiComponentGallery-ru.ts
Просмотр файла @
a48fcf1b
...
...
@@ -3579,16 +3579,18 @@
<
translation
>
Монохром
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-hide
"
>
<
source
>
Hide
<
/source
>
<
translation
>
Скрыть
<
/translation
>
<
source
>
hide
<
/source
>
<
oldsource
>
Hide
<
/oldsource
>
<
translation
>
скрыть
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-open
"
>
<
source
>
Open
<
/source
>
<
translation
>
Открыть
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-appbar-suffix
"
>
<
source
>
appbar
<
/source
>
<
translation
>
appbar
<
/translation
>
<
source
>
AppBar
<
/source
>
<
oldsource
>
appbar
<
/oldsource
>
<
translation
>
Appbar
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-header
"
>
<
source
>
Header
<
/source
>
...
...
@@ -3599,8 +3601,9 @@
<
translation
>
Текст
заголовка
:
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-show
"
>
<
source
>
Show
<
/source
>
<
translation
>
Показать
<
/translation
>
<
source
>
show
<
/source
>
<
oldsource
>
Show
<
/oldsource
>
<
translation
>
показать
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-subheader-text
"
>
<
source
>
SubHeader
text
:
<
/source
>
...
...
@@ -3618,17 +3621,14 @@
<
source
>
Bottom
positioned
AppBar
<
/source
>
<
translation
>
AppBar
:
позиционирование
снизу
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-hide-bottom-bar
"
>
<
source
>
Hide
bottom
bar
<
/source
>
<
translation
>
Скрыть
нижнее
меню
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-textbutton
"
>
<
source
>
TextButton
<
/source
>
<
translation
>
Кнопка
с
текстом
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-toolbar-suffix
"
>
<
source
>
toolbar
<
/source
>
<
translation
>
тулбар
<
/translation
>
<
source
>
ToolBar
<
/source
>
<
oldsource
>
toolbar
<
/oldsource
>
<
translation
>
Тулбар
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-example
"
>
<
source
>
Example
<
/source
>
...
...
@@ -4042,5 +4042,17 @@
<
source
>
Hello
4
<
/source
>
<
translation
>
Привет
4
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-close
"
>
<
source
>
Close
<
/source
>
<
translation
>
Закрыть
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-close-bottom-bar
"
>
<
source
>
Close
bottom
bar
<
/source
>
<
translation
>
Закрыть
нижнюю
панель
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-close-toolbar
"
>
<
source
>
Close
ToolBar
<
/source
>
<
translation
>
Закрыть
тулбар
<
/translation
>
<
/message
>
<
/context
>
<
/TS
>
translations/ru.auroraos.UiComponentGallery.ts
Просмотр файла @
a48fcf1b
...
...
@@ -3579,16 +3579,18 @@
<
translation
>
Monochrome
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-hide
"
>
<
source
>
Hide
<
/source
>
<
translation
>
Hide
<
/translation
>
<
source
>
hide
<
/source
>
<
oldsource
>
Hide
<
/oldsource
>
<
translation
>
hide
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-open
"
>
<
source
>
Open
<
/source
>
<
translation
>
Open
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-appbar-suffix
"
>
<
source
>
appbar
<
/source
>
<
translation
>
appbar
<
/translation
>
<
source
>
AppBar
<
/source
>
<
oldsource
>
appbar
<
/oldsource
>
<
translation
>
AppBar
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-header
"
>
<
source
>
Header
<
/source
>
...
...
@@ -3599,8 +3601,9 @@
<
translation
>
Header
text
:
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-show
"
>
<
source
>
Show
<
/source
>
<
translation
>
Show
<
/translation
>
<
source
>
show
<
/source
>
<
oldsource
>
Show
<
/oldsource
>
<
translation
>
show
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-subheader-text
"
>
<
source
>
SubHeader
text
:
<
/source
>
...
...
@@ -3618,17 +3621,14 @@
<
source
>
Bottom
positioned
AppBar
<
/source
>
<
translation
>
Bottom
positioned
AppBar
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-hide-bottom-bar
"
>
<
source
>
Hide
bottom
bar
<
/source
>
<
translation
>
Hide
bottom
bar
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-textbutton
"
>
<
source
>
TextButton
<
/source
>
<
translation
>
TextButton
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-toolbar-suffix
"
>
<
source
>
toolbar
<
/source
>
<
translation
>
toolbar
<
/translation
>
<
source
>
ToolBar
<
/source
>
<
oldsource
>
toolbar
<
/oldsource
>
<
translation
>
ToolBar
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-example
"
>
<
source
>
Example
<
/source
>
...
...
@@ -4042,5 +4042,17 @@
<
source
>
Hello
4
<
/source
>
<
translation
>
Hello
4
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-close
"
>
<
source
>
Close
<
/source
>
<
translation
>
Close
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-close-bottom-bar
"
>
<
source
>
Close
bottom
bar
<
/source
>
<
translation
>
Close
bottom
bar
<
/translation
>
<
/message
>
<
message
id
=
"
ui-component-gallery-appbar-close-toolbar
"
>
<
source
>
Close
ToolBar
<
/source
>
<
translation
>
Close
ToolBar
<
/translation
>
<
/message
>
<
/context
>
<
/TS
>
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать