Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Add anarchy's english lang as dummy; add some backgound; remove config
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroHLC committed Oct 1, 2019
1 parent dc4d0bc commit 7399110
Show file tree
Hide file tree
Showing 10 changed files with 1,752 additions and 41 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -19,9 +19,8 @@ Anarchy aims to provide a polished and pure Arch install while leaving open ever

# What is different from Anarchy Linux?

Chaotic Installer is written in C++ and because of that, it's hard to say it follows KISS philosophy.

Other differences
* Chaotic Installer has a Graphical Interface
* Chaotic Installer is written in C++ and because of that, it's hard to say it follows KISS philosophy.
* It doesn't includes `yay`

# Is it related to Chaotic-AUR repository?
Expand All @@ -35,4 +34,5 @@ So you won't need Wayland neither X or a WM.

# Dependencies
```
yay -S qt5-base qt5-quickcontrols2
yay -S qt5-base qt5-quickcontrols2 libevdev
```
Binary file added assets/background.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions chaotic-installer.pro
Expand Up @@ -5,6 +5,6 @@ CONFIG += c++17
BASEDIR = $${PWD}
VPATH *= $${BASEDIR}/src $${INCLUDEPATH}

HEADERS = chaotic-installer.hpp config.hpp
SOURCES = main.cpp config.cpp
HEADERS = chaotic-installer.hpp lang.hpp
SOURCES = main.cpp lang.cpp
TARGET = bin/chaotic-installer
16 changes: 5 additions & 11 deletions qml/Welcome.qml
Expand Up @@ -18,33 +18,27 @@ Rectangle {
LayoutMirroring.enabled: Qt.locale().textDirection == Qt.RightToLeft
LayoutMirroring.childrenInherit: true

Material.theme: Material.Dark
Material.accent: Material.Indigo

Connections {
}

Image {
anchors.fill: parent
source: assetsPath + config.background
source: assetsPath + 'background.jpg'
fillMode: Image.PreserveAspectCrop
clip: true
focus: true
smooth: true

onStatusChanged: {
if (status == Image.Error && source != config.defaultBackground) {
source = config.defaultBackground
}
}
}

Material.theme: Material.Dark
Material.accent: Material.Indigo

Column {
id: content
anchors.centerIn: parent

Button {
text: qsTr("Hello World, I'm alive!")
text: qsTr(lang.mainCancel)
highlighted: true
Material.accent: Material.Orange
}
Expand Down
15 changes: 15 additions & 0 deletions src/chaotic-installer.hpp
Expand Up @@ -4,4 +4,19 @@
#define QML_PATH "qml/"
#define ASSETS_PATH "assets/"

void set_keys();
void update_mirrors();
void check_connection();
void set_locale();
void set_zone();
void prepare_drives();
void install_options();
void set_hostname();
void set_user();
void add_software();
void install_base();
void configure_system();
void add_user();
void reboot_system();

#endif // CHAOTIC_INSTALLER_H
5 changes: 0 additions & 5 deletions src/config.cpp

This file was deleted.

16 changes: 0 additions & 16 deletions src/config.hpp

This file was deleted.

0 comments on commit 7399110

Please sign in to comment.