Добавлен фон

pull/1/head
Igor Belitskiy 3 years ago
parent e912ffe356
commit 1b8e13e3f3

@ -95,19 +95,20 @@ install: check uninstall
echo $${FILE_PO}; \
msgfmt "$${FILE_PO}" -v -f -o "$${PATH_FILE_MO}"; \
done
# @for SIZE in 16 32 48; do \
@for SIZE in 16 32 48; do \
install -dm755 /usr/share/icons/hicolor/$${SIZE}x$${SIZE}/apps; \
rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data ${PKGNAME}.svg -o "/usr/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/${PKGNAME}.svg"; \
done
@install -dm755 /usr/share/icons/hicolor/scalable/apps
# @install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg
@install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg
@install -Dm755 -t /usr/bin/ ${CMAKE_BUILD_DIR}/${PKGNAME}
@install -Dm644 -t /usr/share/applications/ ${PKGNAME}.desktop
@install -Dm644 -t /usr/share/polkit-1/actions/ org.ublinux.pkexec.${PKGNAME}.exec.policy
@install -dm755 /usr/share/${PKGNAME}/{ui,css,images}
@install -Dm644 -t /usr/share/${PKGNAME}/ui/ ${PKGNAME}.glade
@install -Dm644 -t /usr/share/${PKGNAME}/css/ style.css
# @install -Dm644 -t /usr/share/${PKGNAME}/images/ ${PKGNAME}.svg
@install -Dm644 -t /usr/share/${PKGNAME}/images/ bg_top.png
@install -Dm644 -t /usr/share/${PKGNAME}/images/ ${PKGNAME}.svg
# @install -Dm644 -t /usr/share/${PKGNAME}/images/ ${PKGNAME}.png
@gtk-update-icon-cache -fiq /usr/share/icons/hicolor/
@update-desktop-database --quiet 2>/dev/null

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

@ -191,6 +191,7 @@ void MainWindow::get_path_filemaneg(){
path_file_name = wndChooseFileWallpaper->get_filename();
if (path_file_name.length()==0){}
else{
txtCmd->set_text(path_file_name);
this->close_filemaneg();
}
}
@ -204,7 +205,7 @@ void MainWindow::open_list_app(){
}
}
void MainWindow::start_cmd(){
txtCmd->set_text("");
//txtCmd->set_text("");
string str_cmd_terminal="";
string str_variants_root = "";
string str_nice_cmd = "";
@ -268,17 +269,24 @@ void MainWindow::start_cmd(){
str_nice_cmd = "nice -n " + to_string(spinPriority->get_value_as_int()) + " ";
}
//=========================================
string user_cmd = txtCmd->get_text();
//=========================================
if (user_cmd.length()==0){
messageError->show();
}
if (chbTerminal->get_active()){
str_cmd_terminal=" xterm -e ";
}
else{
str_cmd_terminal="";
}
//=========================================
if (path_file_name.length()==0){
messageError->show();
}
txtCmd->set_text(str_cmd_terminal + str_variants_root + str_nice_cmd);
string cmd = "";
cmd = "" + str_cmd_terminal + str_variants_root + str_nice_cmd + user_cmd + " &";
cout << cmd << endl;
txtCmd->set_text(cmd);
system(cmd.c_str());
path_file_name="";
}
@ -353,10 +361,13 @@ void MainWindow::pars_users(){
}
break;
}
if (entry->pw_uid>=1000 && entry->pw_uid!=65534){
cmbUser->append(entry->pw_name);
}
}
cmbUser->append("root");
endpwent();
}
void MainWindow::pars_apps(){

@ -1,4 +1,3 @@
.cssboxColor1{
background-color: rgb(255, 255, 255);
background-size: 100% auto;
background: url("/usr/share/ublexec/images/bg_top.png") no-repeat;
}

@ -152,8 +152,8 @@
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="pixel-size">80</property>
<property name="icon-name">application-x-executable</property>
<property name="pixel-size">69</property>
<property name="icon-name">ublexec</property>
</object>
<packing>
<property name="expand">False</property>
@ -173,6 +173,8 @@
<property name="margin-bottom">6</property>
<property name="label" translatable="yes">Запуск приложений от имени пользователя с указанным приоритетом</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="foreground" value="#000023233232"/>
<attribute name="size" value="12288"/>
</attributes>
</object>

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 212 KiB

Loading…
Cancel
Save