Skip to content

Commit

Permalink
chore: Add css file to fedora-logos package
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Aug 5, 2024
1 parent 4a3fb3b commit fd1fa1d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 7 deletions.
Binary file added spec_files/fedora-logos/anaconda_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 13 additions & 7 deletions spec_files/fedora-logos/fedora-logos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ URL: https://pagure.io/fedora-logos
Source0: https://pagure.io/fedora-logos/archive/%{version}/fedora-logos-%{version}.tar.gz
Source1: sidebar-bg.png
Source2: sidebar-logo.png
Source3: topbar-bg.png
Source4: anaconda_header.png
Source5: fedora.css
License: LicenseRef-Fedora-Logos
Provides: redhat-logos = %{version}-%{release}
Provides: gnome-logos = %{version}-%{release}
Expand Down Expand Up @@ -74,8 +77,6 @@ used as a drop-in replacement for fedora-logos.

%prep
%autosetup -p1
cp -f %{SOURCE1} sidebar-bg.png
cp -f %{SOURCE2} sidebar-logo.png

%build

Expand Down Expand Up @@ -205,16 +206,21 @@ install -p -m 644 anaconda/syslinux-splash.png %{buildroot}%{_datadir}/anaconda/
# note the filename change
install -p -m 644 anaconda/syslinux-vesa-splash.png %{buildroot}%{_datadir}/anaconda/boot/splash.png
mkdir -p %{buildroot}%{_datadir}/anaconda/pixmaps
install -p -m 644 anaconda/anaconda_header.png %{buildroot}%{_datadir}/anaconda/pixmaps/
# install -p -m 644 anaconda/anaconda_header.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 %{SOURCE4} %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 anaconda/anaconda_header_classic.png %{buildroot}%{_datadir}/anaconda/pixmaps/
# This had not been regenerated since Fedora 17. Clearly not used anymore.
# install -p -m 644 anaconda/progress_first.png %%{buildroot}%%{_datadir}/anaconda/pixmaps/
# install -p -m 644 anaconda/splash.png %%{buildroot}%%{_datadir}/anaconda/pixmaps/
install -p -m 644 anaconda/sidebar-logo.png %{buildroot}%{_datadir}/anaconda/pixmaps/
# install -p -m 644 anaconda/sidebar-logo.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 anaconda/sidebar-logo_classic.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 anaconda/sidebar-bg.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 anaconda/topbar-bg.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 anaconda/fedora.css %{buildroot}%{_datadir}/anaconda/pixmaps/
# install -p -m 644 anaconda/sidebar-bg.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/anaconda/pixmaps/
# install -p -m 644 anaconda/topbar-bg.png %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/anaconda/pixmaps/
# install -p -m 644 anaconda/fedora.css %{buildroot}%{_datadir}/anaconda/pixmaps/
install -p -m 644 %{SOURCE5} %{buildroot}%{_datadir}/anaconda/pixmaps/

# Variant Anaconda art
pushd anaconda
Expand Down
37 changes: 37 additions & 0 deletions spec_files/fedora-logos/fedora.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* Anaconda gtk style overrides for Fedora */

/* vendor-specific colors */
@define-color fedora #51a2da;

/* logo and sidebar classes */

/* The sidebar consists of three parts: a background, a logo, and a product logo,
* rendered in that order. The product logo is empty by default and is intended
* to be overridden by a stylesheet in product.img.
*/
.logo-sidebar {
background-image: url('/usr/share/anaconda/pixmaps/sidebar-bg.png');
background-color: @fedora;
background-repeat: no-repeat;
}

/* Add a logo to the sidebar */
.logo {
background-image: url('/usr/share/anaconda/pixmaps/sidebar-logo.png');
background-position: 50% 20px;
background-repeat: no-repeat;
background-color: transparent;
}

/* This is a placeholder to be filled by a product-specific logo. */
.product-logo {
background-image: none;
background-color: transparent;
}

AnacondaSpokeWindow #nav-box {
background-color: @fedora;
background-image: url('/usr/share/anaconda/pixmaps/topbar-bg.png');
background-repeat: repeat;
color: white;
}
Binary file added spec_files/fedora-logos/topbar-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd1fa1d

Please sign in to comment.