mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-07 06:34:16 +02:00
refactor(qml): extract header, search, and theme from Main.qml
Split the duplicated desktop/compact header UI into reusable QML components (HeaderNavigation, SearchToolbar, QuickFilters), centralize colors and world tags in BearTheme singleton, and move flag emoji logic to FlagUtils.js. Register modules via qrc import path qrc:/qml. Main.qml shrinks from ~1816 to ~1240 lines; behavior unchanged.
This commit is contained in:
13
src/qml.qrc
13
src/qml.qrc
@@ -1,10 +1,19 @@
|
||||
<RCC>
|
||||
<qresource prefix="/qml">
|
||||
<file>qml/Main.qml</file>
|
||||
<file>qml/theme/qmldir</file>
|
||||
<file>qml/theme/BearTheme.qml</file>
|
||||
<file>qml/components/qmldir</file>
|
||||
<file>qml/components/HeaderNavigation.qml</file>
|
||||
<file>qml/components/SearchToolbar.qml</file>
|
||||
<file>qml/components/QuickFilters.qml</file>
|
||||
<file>qml/utils/FlagUtils.js</file>
|
||||
</qresource>
|
||||
<qresource prefix="/">
|
||||
<file alias="Main.qml">qml/Main.qml</file>
|
||||
<file alias="assets/app/bearwave.png">../assets/app/bearwave.png</file>
|
||||
<file alias="assets/app/bearwave_line.png">../assets/app/bearwave_line.png</file>
|
||||
<file alias="assets/ui/globe.svg">../assets/ui/globe.svg</file>
|
||||
<file alias="assets/ui/github.svg">../assets/ui/github.svg</file>
|
||||
<file alias="assets/ui/linkedin.svg">../assets/ui/linkedin.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
</RCC>
|
||||
Reference in New Issue
Block a user